- 09 3月, 2014 17 次提交
-
-
由 Huon Wilson 提交于
The manual, tutorial and guides need the feature gates quite often, unfortunately, so this is the low-cost path to migrating to use rustdoc. This is only activated for pure-Markdown files. Preferably this would be avoided: #12773
-
由 Huon Wilson 提交于
This avoids having to include JS in the guide/tutorial/manual pages just to get the headers being links. The on-hover behaviour showing the little section marker § is preserved, because that gives a useful hint that the heading is a link.
-
由 Huon Wilson 提交于
markdown files. This means that # Foo ## Bar # Baz ### Qux ## Quz Gets a TOC like 1 Foo 1.1 Bar 2 Baz 2.0.1 Qux 2.1 Quz This functionality is only used when rendering a single markdown file, never on an individual module, although it could very feasibly be extended to allow modules to opt-in to a table of contents (std::fmt comes to mind).
-
由 Huon Wilson 提交于
This theoretically gives rustdoc the ability to render our guides, tutorial and manual (not in practice, since the files themselves need to be adjusted slightly to use Sundown-compatible functionality). Fixes #11392.
-
由 bors 提交于
This is useful for code that would be expensive to run or has some kind of external dependency (e.g. a database or server).
-
由 bors 提交于
Refactored get_metadata_section to return a Result<MetadataBlob,~str> instead of a Option<MetadataBlob>. This provides more clarity to the user through the debug output when using --ls. This is kind of a continuation of my original closed pull request 2 months ago (#11544), but I think the time-span constitutes a new pull request.
-
由 Steven Fackler 提交于
This is useful for code that would be expensive to run or has some kind of external dependency (e.g. a database or server).
-
由 bors 提交于
Fixes #12698
-
由 Robert Gawdzik 提交于
-
由 bors 提交于
This is mostly a reaction to #12730. If we are going to keep calling them `char`, at least make it clear that they aren't characters but codepoint/scalar.
-
由 bors 提交于
Change `~[T]` to Vec<T> in librustc. Rebased and amended version of PR #12716. Original author (or perhaps I should say meta-author) was @pcwalton, as is reflected in the commits. I clean up! :)
-
由 Felix S. Klock II 提交于
(Original PR was #12716; feedback was provided by thestinger and me.)
-
由 Patrick Walton 提交于
-
由 Felix S. Klock II 提交于
-
由 Patrick Walton 提交于
-
由 Michael Darakananda 提交于
-
由 Patrick Walton 提交于
-
- 08 3月, 2014 8 次提交
-
-
由 Luca Bruno 提交于
XID_* property are defined in UAX #31, just reference it here. Signed-off-by: NLuca Bruno <lucab@debian.org>
-
由 Luca Bruno 提交于
Uniform and beautify doc-string for current rustdoc output. Signed-off-by: NLuca Bruno <lucab@debian.org>
-
由 Luca Bruno 提交于
This seems to be causing some confusion among users. Rust's char are not 8bit characters, but 32bit UCS-4 codepoint without surrogates (Unicode Scalar Values as per Unicode glossary). Make the doc more explicit about it. Signed-off-by: NLuca Bruno <lucab@debian.org>
-
由 bors 提交于
* `Ord` inherits from `Eq` * `TotalOrd` inherits from `TotalEq` * `TotalOrd` inherits from `Ord` * `TotalEq` inherits from `Eq` This is a partial implementation of #12517.
-
由 Daniel Micay 提交于
* `Ord` inherits from `Eq` * `TotalOrd` inherits from `TotalEq` * `TotalOrd` inherits from `Ord` * `TotalEq` inherits from `Eq` This is a partial implementation of #12517.
-
由 bors 提交于
Rust v0.1 was released on January 20, 2012: https://mail.mozilla.org/pipermail/rust-dev/2012-January/001256.html
-
由 bors 提交于
A structure's definition and implementation may be cross-module. If the implementing module is parsed before defining module, the fully qualified name of the structure won't be present for the implementation to use when being indexed. So caches such 'orphan' implementation and indexes it at the end of crate parsing. Closes #10284.
-
由 Edward Wang 提交于
A structure's definition and implementation may be cross-module. If the implementing module is parsed before defining module, the fully qualified name of the structure won't be present for the implementation to use when being indexed. So caches such 'orphan' implementation and indexes it at the end of crate parsing. Closes #10284.
-
- 07 3月, 2014 15 次提交
-
-
由 bors 提交于
If no arguments are given to `vec!` then no pushes are emitted and so the compiler (rightly) complains that the mutability of `temp` is never used. This behaviour is rather annoying for users.
-
由 bors 提交于
rename ast::ViewItemExternMod to ast::ViewItemExternCrate rename rustdoc::clean::ExternMod to rustdoc::clean::ExternCrate because `extern mod` is out.
-
由 Liigo Zhuang 提交于
rename ast::ViewItemExternMod to ast::ViewItemExternCrate, and clean::ExternMod to clean::ExternCrate
-
由 bors 提交于
Minor change to the FVN hashing function based on recommendation on: http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash cc @alexcrichton
-
由 Ted Horst 提交于
-
由 Liigo Zhuang 提交于
-
由 Huon Wilson 提交于
If no arguments are given to `vec!` then no pushes are emitted and so the compiler (rightly) complains that the mutability of `temp` is never used. This behaviour is rather annoying for users.
-
由 bors 提交于
The arguments were accidentally swapped in the wrong order. Closes #12743
-
由 bors 提交于
This leverages the new hashing framework and hashmap implementation to provide a much speedier hashing algorithm for node ids and def ids. The hash algorithm used is currentl FNV hashing, but it's quite easy to swap out. I originally implemented hashing as the identity function, but this actually ended up in slowing down rustc compiling libstd from 8s to 13s. I would suspect that this is a result of a large number of collisions. With FNV hashing, we get these timings (compiling with --no-trans, in seconds): | | before | after | |-----------|---------:|--------:| | libstd | 8.324 | 6.703 | | stdtest | 47.674 | 46.857 | | libsyntax | 9.918 | 8.400 |
-
由 Alex Crichton 提交于
If #[feature(default_type_parameters)] is enabled for a crate, then deriving(Hash) will expand with Hash<W: Writer> instead of Hash<SipState> so more hash algorithms can be used.
-
由 Alex Crichton 提交于
The arguments were accidentally swapped in the wrong order. Closes #12743
-
由 Alex Crichton 提交于
This leverages the new hashing framework and hashmap implementation to provide a much speedier hashing algorithm for node ids and def ids. The hash algorithm used is currentl FNV hashing, but it's quite easy to swap out. I originally implemented hashing as the identity function, but this actually ended up in slowing down rustc compiling libstd from 8s to 13s. I would suspect that this is a result of a large number of collisions. With FNV hashing, we get these timings (compiling with --no-trans, in seconds): | | before | after | |-----------|---------:|--------:| | libstd | 8.324 | 6.703 | | stdtest | 47.674 | 46.857 | | libsyntax | 9.918 | 8.400 |
-
由 bors 提交于
Closes #6738 Closes #7061 Closes #7899 Closes #9719 Closes #10028 Closes #10228 Closes #10401 Closes #11192 Closes #11508 Closes #11529 Closes #11873 Closes #11925
-
由 bors 提交于
Turns out sundown has already escaped this content for us, so there's no need for us to escape it again. Closes #12736
-
由 bors 提交于
On Windows, `LLVMRustGetLastError()` may return non-utf8 mojibake string if system uses non-English locale. It caused ICE when llvm fails. This patch doesn't fix the real problem, but just make rustc not die.
-