summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2017-10-09Auto merge of #45041 - est31:master, r=alexcrichtonbors-2/+1
Remove support for the PNaCl target (le32-unknown-nacl) This removes support for the `le32-unknown-nacl` target which is currently supported by rustc on tier 3. Despite the "nacl" in the name, the target doesn't output native code (x86, ARM, MIPS), instead it outputs binaries in the PNaCl format. There are two reasons for the removal: * Google [has announced](https://blog.chromium.org/2017/05/goodbye-pnacl-hello-webassembly.html) deprecation of the PNaCl format. The suggestion is to migrate to wasm. Happens we already have a wasm backend! * Our PNaCl LLVM backend is provided by the fastcomp patch set that the LLVM fork used by rustc contains in addition to vanilla LLVM (`src/llvm/lib/Target/JSBackend/NaCl`). Upstream LLVM doesn't have PNaCl support. Removing PNaCl support will enable us to move away from fastcomp (#44006) and have a lighter set of patches on top of upstream LLVM inside our LLVM fork. This will help distribution packagers of Rust. Fixes #42420
2017-10-07Fix invalid rustdoc rendering for FnTy argsGuillaume Gomez-1/+1
2017-10-05Auto merge of #44940 - philipc:remap-path, r=michaelwoeristerbors-0/+2
Don't use remapped path when loading modules and include files Fixes bug reported in https://github.com/rust-lang/rust/issues/41555#issuecomment-327866056. cc @michaelwoerister
2017-10-05Remove nacl from librustdocest31-2/+1
2017-10-03Add fixme regarding remapping paths for doctestsPhilip Craig-0/+2
2017-10-01rustdoc: Style of [src] link for trait implementorsVitaly _Vi Shukela-1/+8
A change suggested by @GuillaumeGomez and @QuietMisdreavus. Also slight reindenting of the appropriate CSS section.
2017-09-29rustdoc: Render [src] links for trait implementors (#43893)Vitaly _Vi Shukela-1/+10
2017-09-29rustdoc: Extract converter from Impementor to Item to a fnVitaly _Vi Shukela-13/+19
2017-09-28Update to the `cc` crateAlex Crichton-3/+3
This is the name the `gcc` crate has moved to
2017-09-27Auto merge of #44709 - Badel2:inclusive-range-dotdoteq, r=petrochenkovbors-3/+3
Initial support for `..=` syntax #28237 This PR adds `..=` as a synonym for `...` in patterns and expressions. Since `...` in expressions was never stable, we now issue a warning. cc @durka r? @aturon
2017-09-26don't let rustdoc get confused by text "fn main" in a line commentZack M. Davis-1/+15
This is in the matter of #21299.
2017-09-24Auto merge of #44758 - arielb1:a-small-path, r=eddybbors-15/+17
put empty generic lists behind a pointer This reduces the size of hir::Expr from 128 to 88 bytes (!) and shaves 200MB out of #36799. This is a performance-sensitive PR so please don't roll it up. r? @eddyb
2017-09-24Rollup merge of #44789 - GuillaumeGomez:fix-rustdoc-display, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix warning position in rustdoc code blocks Before: <img width="1440" alt="screen shot 2017-09-23 at 14 07 08" src="https://user-images.githubusercontent.com/3050060/30773382-b9649288-a06f-11e7-94ec-faa3c3ed999b.png"> After: <img width="1440" alt="screen shot 2017-09-23 at 14 58 31" src="https://user-images.githubusercontent.com/3050060/30773384-bdfc9f3e-a06f-11e7-9030-9fb8a5308668.png"> r? @QuietMisdreavus
2017-09-24put empty generic lists behind a pointerAriel Ben-Yehuda-15/+17
This reduces the size of hir::Expr from 128 to 88 bytes (!) and shaves 200MB out of #36799.
2017-09-23Fix warning position in rustdoc code blocksGuillaume Gomez-1/+1
2017-09-23Rollup merge of #44554 - GuillaumeGomez:add-missing-pub, r=QuietMisdreavusCorey Farwell-2/+4
Add pub visibility for methods as well Fixes #44527. r? @QuietMisdreavus
2017-09-22Add support for `..=` syntaxAlex Burka-3/+3
Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book
2017-09-22Auto merge of #44696 - michaelwoerister:fingerprints-in-dep-graph-3, ↵bors-3/+3
r=nikomatsakis incr.comp.: Move task result fingerprinting into DepGraph. This PR - makes the DepGraph store all `Fingerprints` of task results, - allows `DepNode` to be marked as input nodes, - makes HIR node hashing use the regular fingerprinting infrastructure, - removes the now unused `IncrementalHashesMap`, and - makes sure that `traits_in_scope_map` fingerprints are stable. r? @nikomatsakis cc @alexcrichton
2017-09-21Refactor lifetime name into an enumTaylor Cramer-5/+5
2017-09-20incr.comp.: Remove IncrementalHashesMap and calculate_svh module.Michael Woerister-3/+3
2017-09-20Auto merge of #44350 - GuillaumeGomez:id-false-positive, r=QuietMisdreavusbors-24/+44
Improve how rustdoc warnings are displayed cc @rust-lang/dev-tools r? @nrc
2017-09-19Improve how warnings are displayedGuillaume Gomez-24/+44
2017-09-19Add pub visibility for methods as wellGuillaume Gomez-2/+4
2017-09-19Auto merge of #44026 - QuietMisdreavus:trimmed-std, r=steveklabnikbors-17/+60
hide internal types/traits from std docs via new #[doc(masked)] attribute Fixes #43701 (hopefully for good this time) This PR introduces a new parameter to the `#[doc]` attribute that rustdoc looks for on `extern crate` statements. When it sees `#[doc(masked)]` on such a statement, it hides traits and types from that crate from appearing in either the "Trait Implementations" section of many type pages, or the "Implementors" section of trait pages. This is then applied to the `libc`/`rand`/`compiler_builtins` imports in libstd to prevent those crates from creating broken links in the std docs. Like in #43348, this also introduces a feature gate, `doc_masked`, that controls the use of this parameter. To view the std docs generated with this change, head to https://tonberry.quietmisdreavus.net/std-43701/std/index.html.
2017-09-18Rollup merge of #44671 - GuillaumeGomez:run-button, r=steveklabnikAlex Crichton-0/+5
Fix run button r? @QuietMisdreavus Before: ![before](https://user-images.githubusercontent.com/3050060/30538927-612c6a44-9c70-11e7-9ca2-f3860d880b95.png) After: ![after](https://user-images.githubusercontent.com/3050060/30538929-6416ea0e-9c70-11e7-990a-7e4fbf5d7319.png) Quite urgent.
2017-09-18Rollup merge of #44661 - GuillaumeGomez:more-links, r=QuietMisdreavusAlex Crichton-5/+15
Add more links and put the link character to the left r? @QuietMisdreavus And of course, a few screenshots: <img width="1440" alt="screen shot 2017-09-17 at 22 08 46" src="https://user-images.githubusercontent.com/3050060/30524496-44a50208-9bf5-11e7-942e-a3707ba125c3.png"> <img width="1440" alt="screen shot 2017-09-17 at 22 09 47" src="https://user-images.githubusercontent.com/3050060/30524502-49068dbc-9bf5-11e7-8e59-ec38664e0e0f.png"> <img width="1440" alt="screen shot 2017-09-17 at 22 10 56" src="https://user-images.githubusercontent.com/3050060/30524503-491c8c34-9bf5-11e7-9ce5-f1bd5ef8600b.png">
2017-09-18Fix run buttonGuillaume Gomez-0/+5
2017-09-18incr.comp.: Remove tcx from StableHashingContext.Michael Woerister-2/+2
2017-09-18incr.comp.: Already hash HIR bodies during metadata export so they don't ↵Michael Woerister-2/+2
have to be hashed in downstream crates.
2017-09-18Use DefId instead of NodeId as identifier in resolve_lifetime::Region.Michael Woerister-4/+5
These Region values end up in crate metadata so they should not use NodeId.
2017-09-17Add more links and put the link character to the leftGuillaume Gomez-5/+15
2017-09-17rustc: Move codegen to a queryAlex Crichton-1/+7
This commit moves the actual code generation in the compiler behind a query keyed by a codegen unit's name. This ended up entailing quite a few internal refactorings to enable this, along with a few cut corners: * The `OutputFilenames` structure is now tracked in the `TyCtxt` as it affects a whole bunch of trans and such. This is now behind a query and threaded into the construction of the `TyCtxt`. * The `TyCtxt` now has a channel "out the back" intended to send data to worker threads in rustc_trans. This is used as a sort of side effect of the codegen query but morally what's happening here is the return value of the query (currently unit but morally a path) is only valid once the background threads have all finished. * Dispatching work items to the codegen threads was refactored to only rely on data in `TyCtxt`, which mostly just involved refactoring where data was stored, moving it from the translation thread to the controller thread's `CodegenContext` or the like. * A new thread locals was introduced in trans to work around the query system. This is used in the implementation of `assert_module_sources` which looks like an artifact of the old query system and will presumably go away once red/green is up and running.
2017-09-17Rollup merge of #44562 - eddyb:ugh-rustdoc, r=nikomatsakisTim Neumann-1/+13
rustdoc: pretty-print Unevaluated expressions in types. Fixes #44555. r? @nikomatsakis
2017-09-17Rollup merge of #44397 - GuillaumeGomez:codeblock-color, r=QuietMisdreavusTim Neumann-10/+142
Codeblock color <img width="1440" alt="screen shot 2017-09-07 at 21 53 58" src="https://user-images.githubusercontent.com/3050060/30183045-4319108e-9419-11e7-98da-da54952cab37.png"> This screenshot has been generated from: ```rust /// foo /// /// ```compile_fail /// foo(); /// ``` /// /// ```ignore /// goo(); /// ``` /// /// ``` /// let x = 0; /// ``` pub fn bar() -> usize { 2 } ``` r? @QuietMisdreavus cc @rust-lang/docs
2017-09-16Rollup merge of #44560 - qmx:import-TyCtxt, r=eddybAlex Crichton-3/+3
bring TyCtxt into scope got comments both from @eddyb and @nikomatsakis (via https://github.com/rust-lang/rust/pull/44505) that we should always put `TyCtxt` in scope should I just go and import it at other places in the codebase or we just keep doing small improvements?
2017-09-15Auto merge of #43949 - GuillaumeGomez:compile_fail_stable, r=alexcrichtonbors-3/+1
Compile fail stable Since #30726, we never made the `compile_fail` flag nor the error code check stable. I think it's time to change this fact. r? @alexcrichton
2017-09-14Rollup merge of #44368 - ollie27:rustdoc_pulldown_ids, r=QuietMisdreavusCorey Farwell-2/+6
rustdoc: Don't counts ids twice when using --enable-commonmark cc @GuillaumeGomez r? @QuietMisdreavus
2017-09-14Rollup merge of #44254 - GuillaumeGomez:const-fix-rustdoc, r=QuietMisdreavusCorey Farwell-17/+4
Fix rendering of const keyword for functions Fixes #44187. r? @QuietMisdreavus
2017-09-14bring Ty into scopeDouglas Campos-3/+3
2017-09-14rustc: Remove `Session::dep_graph`Alex Crichton-13/+11
This commit removes the `dep_graph` field from the `Session` type according to issue #44390. Most of the fallout here was relatively straightforward and the `prepare_session_directory` function was rejiggered a bit to reuse the results in the later-called `load_dep_graph` function. Closes #44390
2017-09-14rustdoc: pretty-print Unevaluated expressions in types.Eduard-Mihai Burtescu-1/+13
2017-09-12rustc: Make `CrateStore` private to `TyCtxt`Alex Crichton-5/+8
This commit removes the `cstore_untracked` method, making the `CrateStore` trait object entirely private to the `ty/context.rs` module.
2017-09-12Fix rendering of const keyword for functionsGuillaume Gomez-17/+4
2017-09-12Remove the `cstore` reference from Session in order to prepare encapsulating ↵Michael Woerister-3/+4
CrateStore access in tcx.
2017-09-12Auto merge of #44275 - eddyb:deferred-ctfe, r=nikomatsakisbors-6/+25
Evaluate fixed-length array length expressions lazily. This is in preparation for polymorphic array lengths (aka `[T; T::A]`) and const generics. We need deferred const-evaluation to break cycles when array types show up in positions which require knowing the array type to typeck the array length, e.g. the array type is in a `where` clause. The final step - actually passing bounds in scope to array length expressions from the parent - is not done because it still produces cycles when *normalizing* `ParamEnv`s, and @nikomatsakis' in-progress lazy normalization work is needed to deal with that uniformly. However, the changes here are still useful to unlock work on const generics, which @EpicatSupercell manifested interest in, and I might be mentoring them for that, but we need this baseline first. r? @nikomatsakis cc @oli-obk
2017-09-11Add arrow and improve displayGuillaume Gomez-36/+98
2017-09-11Add class for codeblocksGuillaume Gomez-9/+79
2017-09-11Auto merge of #44435 - alexcrichton:in-scope, r=michaelwoeristerbors-4/+5
rustc: Remove HirId from queries This'll allow us to reconstruct query parameters purely from the `DepNode` they're associated with. Closes #44414
2017-09-11rustc: Remove HirId from queriesAlex Crichton-4/+5
This'll allow us to reconstruct query parameters purely from the `DepNode` they're associated with. Some queries could move straight to `HirId` but others that don't always have a correspondance between `HirId` and `DefId` moved to two-level maps where the query operates over a `DefIndex`, returning a map, which is then keyed off `ItemLocalId`. Closes #44414
2017-09-11rustc: evaluate fixed-length array length expressions lazily.Eduard-Mihai Burtescu-3/+7