about summary refs log tree commit diff
path: root/src/librustdoc/visit_lib.rs
AgeCommit message (Collapse)AuthorLines
2021-09-10rustc: Remove local variable IDs from `Export`sVadim Petrochenkov-1/+1
Local variables can never be exported.
2021-03-01Remove the dummy cache in `DocContext`Joshua Nelson-1/+1
The same information is available everywhere; the only reason the dummy cache was needed is because it waas previously stored in three different places. This consolidates the info a bit so the cache in `DocContext` is used throughout. As a bonus, it means `renderinfo` is used much much less. - Return a `Cache` from `run_global_ctxt`, not `RenderInfo` - Remove the unused `render_info` from `run_renderer` - Remove RefCell around `inlined` - Add intra-doc links
2021-02-22Remove many RefCells from DocContextCamelid-1/+1
I left some of them so this change doesn't balloon in size and because removing the RefCell in `DocContext.resolver` would require compiler changes. Thanks to `@jyn514` for making this a lot easier with #82020!
2020-11-15Make all rustdoc functions and structs crate-privateJoshua Nelson-4/+4
This gives warnings about dead code.
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-2/+2
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-2/+2
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-2/+2
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2019-12-22Format the worldMark Rousskov-13/+8
2019-08-26Mutate DocContext from LibEmbargoVisitor and RustdocVisitorMark Rousskov-13/+11
We have &mut access, so remove the RefCell borrowing
2019-05-13Pass a `Symbol` to `check_name`, `emit_feature_err`, and related functions.Nicholas Nethercote-1/+2
2019-05-03rustc: rename hir::def::Def to Res (short for "resolution").Eduard-Mihai Burtescu-6/+6
2019-05-03rustc: factor most DefId-containing variants out of Def and into DefKind.Eduard-Mihai Burtescu-2/+2
2019-03-10Make the rustc driver and interface demand drivenJohn Kåre Alsaker-5/+5
2019-02-23Transition librustdoc to 2018 editionHirokazu Hata-3/+3
2019-02-13libpanic_unwind => 2018: fix ICEs.Mazdak Farrokhzad-3/+5
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-10Remove lifetime from ResolverJohn Kåre Alsaker-5/+5
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-1/+1
2018-09-20refactor: move `access_levels` into RenderInfoQuietMisdreavus-1/+1
2018-08-03Store concrete crate stores where possibleMark Rousskov-4/+6
2018-06-03Remove is_import fieldMark Simulacrum-1/+2
2018-01-22cleanupQuietMisdreavus-4/+4
2018-01-22Make correct resolver available in rustdocManish Goregaokar-1/+1
2018-01-22add a rustc_resolve::Resolver to DocContextQuietMisdreavus-4/+4
2017-12-05Add field `is_import` to `def::Export`.Jeffrey Seyfried-1/+3
2017-09-05rustc: Flag some CrateStore methods as "untracked"Alex Crichton-5/+2
The main use of `CrateStore` *before* the `TyCtxt` is created is during resolution, but we want to be sure that any methods used before resolution are not used after the `TyCtxt` is created. This commit starts moving the methods used by resolve to all be named `{name}_untracked` where the rest of the compiler uses just `{name}` as a query. During this transition a number of new queries were added to account for post-resolve usage of these methods.
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-1/+1
Like #43008 (f668999), but _much more aggressive_.
2017-06-07Fix translation of external spans.Inokentiy Babushkin-1/+1
2017-04-09Fix rustdoc infinitely recursing when an external crate reexports itselfAaron Hill-0/+8
Previously, rustdoc's LibEmbargoVisitor unconditionally visited the child modules of an external crate. If a module re-exported its parent via 'pub use super::*', rustdoc would re-walk the parent, leading to infinite recursion. This commit makes LibEmbargoVisitor store already visited modules in an FxHashSet, ensuring that each module is only walked once. Fixes #40936
2017-02-25rustc: introduce a query system for type information in ty::maps.Eduard Burtescu-1/+1
2016-11-24rustdoc: we can now assume DocContext always has a TyCtxt.Eduard-Mihai Burtescu-1/+1
2016-11-24rustdoc: use libsyntax ast::Attribute instead of "cleaning" them.Eduard-Mihai Burtescu-5/+2
2016-10-04Remove some unused methods from metadataVadim Petrochenkov-3/+4
Address comments + Fix rebase
2016-10-04Fix cross-crate resolution of half-items created by export shadowingVadim Petrochenkov-1/+1
2016-09-20rustc_metadata: split the Def description of a DefId from item_children.Eduard Burtescu-21/+10
2016-09-20rustc_metadata: group information into less tags.Eduard Burtescu-4/+4
2016-09-20rustc_metadata: move more RBML tags to auto-serialization.Eduard Burtescu-24/+17
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-3/+2
2016-09-03Support unions in rustdocVadim Petrochenkov-0/+1
2016-04-25Linkify extern crates on rustdoc pagesmitaa-0/+1
2016-04-18Reachability check cross-crate linksmitaa-4/+8
2016-04-18Perform doc-reachability check for inlined implsmitaa-0/+104
This changes the current rule that impls within `doc(hidden)` modules aren't inlined, to only inlining impls where the implemented trait and type are reachable in documentation.