summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2016-05-21Auto merge of #33765 - alex-ozdemir:master, r=Manishearthbors-3/+11
Added a `rustdoc` shortcut for collapse/expand all Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior. This required increasing the height of the help screen.
2016-05-21Rollup merge of #33679 - Manishearth:rustdoc-readmore-impls, r=alexcrichtonManish Goregaokar-12/+43
rustdoc: Add doc snippets for trait impls, with a read more link The read more link only appears if the documentation is more than one line long. ![screenshot from 2016-05-17 06 54 14](https://cloud.githubusercontent.com/assets/1617736/15308544/4c2ba0ce-1bfc-11e6-9add-29de8dc7ac6e.png) It currently does not appear on non-defaulted methods, since you can document them directly. I could make it so that default documentation gets forwarded if regular docs don't exist. Fixes #33672 r? @alexcrichton cc @steveklabnik
2016-05-20Added a `rustdoc` shortcut for collapse/expand allAlex Ozdemir-3/+11
Now when the user presses the "+" key all sections will collapse/expand. Also added a note to the help screen which describes this behavior.
2016-05-20Update testsManish Goregaokar-15/+17
2016-05-19Auto merge of #33742 - Manishearth:rollup, r=Manishearthbors-2/+3
Rollup of 10 pull requests - Successful merges: #33353, #33611, #33696, #33698, #33705, #33708, #33712, #33720, #33721, #33730 - Failed merges:
2016-05-19Rollup merge of #33705 - lqd:rustdoc-version-tooltip, r=GuillaumeGomezManish Goregaokar-2/+3
rustdoc: Make the #[stable(since)] version attribute clearer with a tooltip Rustdoc's new 'since' version placement only shows the version number in which the item was marked stable. This gains space but might make the meaning of this version string less clear in the docs, so I tried to bring some explicitness in a tooltip.
2016-05-19Auto merge of #33702 - crimsun:pr33678, r=alexcrichtonbors-4/+3
Resolved rustdoc crash (#33678) by aborting instead of unwrapping. Also removed Option use and comment to match. Fixes https://github.com/rust-lang/rust/issues/33678
2016-05-19Make the #[stable(since)] version attribute clearer with a tooltipRémy Rakic-2/+3
2016-05-18Move read more link to same lineManish Goregaokar-5/+6
2016-05-18rustdoc: Support short doc fallback for non-default itemsManish Goregaokar-9/+25
2016-05-18rustdoc: Add doc snippets for trait impls, with a read more linkManish Goregaokar-0/+12
Fixes #33672
2016-05-18Auto merge of #33476 - nikomatsakis:incr-comp-xcrate, r=mwbors-10/+15
track incr. comp. dependencies across crates This PR refactors the compiler's incremental compilation hashing so that it can track dependencies across crates. The main bits are: - computing a hash representing the metadata for an item we are emitting - we do this by making `MetaData(X)` be the current task while computing metadata for an item - this naturally registers reads from any tables and things that we read for that purpose - we can then hash all the inputs to those tables - tracking when we access metadata - we do this by registering a read of `MetaData(X)` for each foreign item `X` whose metadata we read - hashing metadata from foreign items - we do this by loading up metadata from a file in the incr. comp. directory - if there is no file, we use the SVH for the entire crate There is one very simple test only at this point. The next PR will be focused on expanding out the tests. Note that this is based on top of https://github.com/rust-lang/rust/pull/33228 r? @michaelwoerister
2016-05-18ignore dep-graph in resolve and lower_crateNiko Matsakis-1/+1
This got removed at some point, it seems.
2016-05-18thread the DepGraph to session/crate-storeNiko Matsakis-9/+14
This is a [breaking-change] for plugin authors. You must now create a dep-graph earlier.
2016-05-18Auto merge of #33710 - Manishearth:rollup, r=Manishearthbors-1/+15
Rollup of 5 pull requests - Successful merges: #33656, #33666, #33673, #33675, #33695 - Failed merges:
2016-05-18Rollup merge of #33673 - GuillaumeGomez:fix-selected-item-style, r=steveklabnikManish Goregaokar-0/+4
Fix selected item background style r? @steveklabnik
2016-05-18Rollup merge of #33656 - GuillaumeGomez:lifetime_bound, r=steveklabnikManish Goregaokar-1/+11
Add lifetime's bounds in doc generation Fixes #33653 ![screenshot from 2016-05-15 15 30 38](https://cloud.githubusercontent.com/assets/3050060/15274445/024dbd5c-1ab2-11e6-9387-274301a05627.png) r? @steveklabnik
2016-05-18Resolved rustdoc crash (#33678) by aborting instead of unwrapping.User-4/+3
Removed Option use and comment to match.
2016-05-16Fix selected item background styleGuillaume Gomez-0/+4
2016-05-16Remove hir::IdentVadim Petrochenkov-3/+3
2016-05-15Auto merge of #33505 - petrochenkov:self, r=nrcbors-127/+81
Remove ExplicitSelf from HIR `self` argument is already kept in the argument list and can be retrieved from there if necessary, so there's no need for the duplication. The same changes can be applied to AST, I'll make them in the next breaking batch. The first commit also improves parsing of method declarations and fixes https://github.com/rust-lang/rust/issues/33413. r? @eddyb
2016-05-15Add lifetime's bounds in doc generationGuillaume Gomez-1/+11
2016-05-14Auto merge of #33600 - ollie27:rustdoc_impl_params, r=alexcrichtonbors-8/+7
rustdoc: Fix missing type parameters on impls They were broken by #32558. Fixes: #33592
2016-05-14Remove ExplicitSelf from HIRVadim Petrochenkov-127/+81
2016-05-13Auto merge of #33538 - Ms2ger:LocalCrateReader, r=arielb1bors-6/+6
Refactor code around LocalCrateReader.
2016-05-13Auto merge of #33532 - jseyfried:mutable_lowering_context, r=nrcbors-3/+2
Clean up `hir::lowering` Clean up `hir::lowering`: - give lowering functions mutable access to the lowering context - refactor the `lower_*` functions and other functions that take a lowering context into methods - simplify the API that `hir::lowering` exposes to `driver` - other miscellaneous cleanups r? @nrc
2016-05-12rustdoc: Fix missing type parameters on implsOliver Middleton-8/+7
2016-05-11Rollup merge of #33542 - GuillaumeGomez:move_since, r=steveklabnikSteve Klabnik-3/+9
Improve "since" tag placement Continuation of #33431. r? @steveklabnik
2016-05-11Make LocalCrateReader private to creader.Ms2ger-2/+2
2016-05-11Hand ownership of the Definitions to map_crate.Ms2ger-2/+1
2016-05-10Auto merge of #33425 - eddyb:rift, r=nikomatsakisbors-51/+52
Split the type context into a global and a local (inference-only) one. After this change, each `InferCtxt` creates its own local type interner for types with inference by-products. Most of the code which handles both a global and a local interner uses `'gcx` and `'tcx` for them. A reference to the type context in that situation (e.g. `infcx.tcx`) is `TyCtxt<'a, 'gcx, 'tcx>`. The global type context which used to be `&'a TyCtxt<'tcx>` is now `TyCtxt<'a, 'tcx, 'tcx>`. In order to minimize the number of extra lifetime parameters, many functions became methods. Where possible (some inherent impls), lifetime parameters were added on the impl, not each method. As inference by-products no longer escape their inference contexts, memory usage is lower. Example of `-Z time-passes` excerpt for `librustc`, stage1 (~100MB gains): Before "rustc: Split local type contexts interners from the global one.": ``` time: 0.395; rss: 335MB item-types checking time: 15.392; rss: 472MB item-bodies checking time: 0.000; rss: 472MB drop-impl checking time: 1.140; rss: 478MB const checking time: 0.139; rss: 478MB privacy checking time: 0.024; rss: 478MB stability index time: 0.072; rss: 478MB intrinsic checking time: 0.038; rss: 478MB effect checking time: 0.255; rss: 478MB match checking time: 0.128; rss: 484MB liveness checking time: 1.372; rss: 484MB rvalue checking time: 1.404; rss: 597MB MIR dump time: 0.809; rss: 599MB MIR passes ``` After: ``` time: 0.467; rss: 337MB item-types checking time: 17.443; rss: 395MB item-bodies checking time: 0.000; rss: 395MB drop-impl checking time: 1.423; rss: 401MB const checking time: 0.141; rss: 401MB privacy checking time: 0.024; rss: 401MB stability index time: 0.116; rss: 401MB intrinsic checking time: 0.038; rss: 401MB effect checking time: 0.382; rss: 401MB match checking time: 0.132; rss: 407MB liveness checking time: 1.678; rss: 407MB rvalue checking time: 1.614; rss: 503MB MIR dump time: 0.957; rss: 512MB MIR passes ``` **NOTE**: Functions changed to methods weren't re-indented to keep this PR easier to review. Once approved, the changes will be mechanically performed. However, indentation changes of function arguments are there - and I believe there's a way to hide whitespace-only changes in diffs on GitHub.
2016-05-10Auto merge of #33512 - birkenfeld:issue-25944, r=sanxiynbors-1/+1
rustdoc: remove artificial indentation of doctest code The indentation makes the examples look nicer when printed (when is this done?), but breaks tests using multi-line string literals. Fixes: #25944
2016-05-11rustc: Remove the unnecessary ast_ty_to_ty_cache.Eduard Burtescu-1/+1
2016-05-11rustc: More interning for data used in Ty<'tcx>.Eduard Burtescu-1/+1
2016-05-11rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.Eduard Burtescu-31/+34
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-16/+16
2016-05-11rustc: Avoid free functions taking &TyCtxt and &InferCtxt.Eduard Burtescu-18/+16
2016-05-10Improve "since" tag placementGuillaume Gomez-3/+9
2016-05-10Delay wrapping Definitions into a RefCell around LocalCrateReader.Ms2ger-4/+5
2016-05-10Store a reference rather than a RefCell in LocalCrateReader.Ms2ger-1/+1
2016-05-10Refactor `hir::lowering` APIJeffrey Seyfried-2/+2
2016-05-10Refactor the `hir::lowering::lower_*` functions into methods of ↵Jeffrey Seyfried-3/+2
`LoweringContext`
2016-05-10Give lowering functions mutable access to the lowering contextJeffrey Seyfried-2/+2
2016-05-09Auto merge of #33443 - jseyfried:resolve_ast, r=nrcbors-7/+11
Perform name resolution before and during ast->hir lowering This PR performs name resolution before and during ast->hir lowering instead of in phase 3. r? @nrc
2016-05-09Rollup merge of #33514 - birkenfeld:issue-29503, r=alexcrichtonManish Goregaokar-3/+12
rustdoc: do not strip blanket impls in crate of origin In `impl<T> Trait for T`, the blanket type parameters `T` were recognized as "local" and "not exported", so these impls were thrown out. Now we check if they are generic, and keep them in that case. Fixes: #29503
2016-05-09Rollup merge of #33509 - birkenfeld:issue-30219, r=alexcrichtonManish Goregaokar-1/+1
rustdoc: fix emitting duplicate implementors in .js files The collect() fn checks for double quotes; use them here as well. Fixes: #30219
2016-05-09Rollup merge of #33431 - GuillaumeGomez:issue-30416, r=steveklabnikManish Goregaokar-7/+48
Update CSS for future rustdoc merge cc #33382 r? @steveklabnik cc @Manishearth cc @birkenfeld
2016-05-09rustdoc: remove artificial indentation of doctest codeGeorg Brandl-1/+1
This makes the examples look nicer when printed (when is this done?), but breaks tests using multi-line string literals. Fixes: #25944
2016-05-09rustdoc: do not strip blanket impls in crate of originGeorg Brandl-3/+12
In `impl<T> Trait for T`, the blanket type parameters `T` were recognized as "local" and "not exported", so these impls were thrown out. Now we check if they are generic, and keep them in that case. Fixes: #29503
2016-05-09Fix fallout in `librustdoc` and in testsJeffrey Seyfried-7/+11