about summary refs log tree commit diff
path: root/src/librustdoc/doctree.rs
AgeCommit message (Collapse)AuthorLines
2021-11-13Delete rustdoc::doctreehi-rustin-27/+0
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-08-28Teach tools that macros are now HIR itemsinquisitivecrystal-10/+2
2021-05-01compute where_outer on demand, remove it from ModuleTimothée Delabrouille-5/+8
2021-04-23rustdoc: Remove unnecessary `is_crate` field from doctree::Module and ↵Joshua Nelson-2/+0
clean::Module It can be calculated on-demand even without a TyCtxt. This also changed `from_item_kind` to take a whole item, which avoids having to add more and more parameters.
2021-03-23Remove another unnecessary `Option`Camelid-2/+2
The previous changes mean that we can now remove this `Option`.
2021-01-20Move StructType to clean, remove it from Unions, make JSON output whether ↵Rune Tynan-20/+0
something is a union
2021-01-15Remove doctree::ImportRune Tynan-14/+0
2021-01-14Remove doctree::VariantRune Tynan-6/+0
2020-12-23Don't unnecessarily override attrs for ModuleJoshua Nelson-3/+1
They were never changed from the default, which you can get with `tcx.get_attrs()`.
2020-12-01Pass around Symbols instead of Idents in doctreeJoshua Nelson-4/+4
The span was unused.
2020-11-27Remove doctree::MacroRune Tynan-10/+1
2020-11-24Get rid of doctree::ExternCrateJoshua Nelson-14/+0
2020-11-24Get rid of doctree::TraitJoshua Nelson-13/+0
2020-11-24Get rid of doctree::FunctionJoshua Nelson-21/+0
2020-11-24Get rid of doctree::ForeignItemJoshua Nelson-7/+1
2020-11-22Get rid of `doctree::Impl`Joshua Nelson-18/+0
2020-11-21Fix wrong names when inliningJoshua Nelson-2/+3
2020-11-21Get rid of some doctree itemsJoshua Nelson-78/+2
They can be derived directly from the `hir::Item`, there's no special logic. - TypeDef - OpaqueTy - Constant - Static - TraitAlias - Enum - Union - Struct
2020-11-17Remove dead code in rustdoc::doctreeJoshua Nelson-47/+5
It was completely unused.
2020-11-15Make all rustdoc functions and structs crate-privateJoshua Nelson-173/+173
This gives warnings about dead code.
2020-10-09Correctly handle "pub use" reexportsGuillaume Gomez-0/+1
2020-10-08Preserve the parent module of `DocFragment`sJoshua Nelson-0/+2
- Add `parent_module` to `DocFragment` - Require the `parent_module` of the item being inlined - Preserve the hir_id for ExternCrates so rustdoc can find the parent module later - Take an optional `parent_module` for `build_impl` and `merge_attrs`. Preserve the difference between parent modules for each doc-comment. - Support arbitrarily many re-exports in from_ast. In retrospect this is probably not used and could be simplified to a single `Option<(Attrs, DefId)>`. - Don't require the parent_module for all `impl`s, just inlined items In particular, this will be `None` whenever the attribute is not on a re-export. - Only store the parent_module, not the HirId When re-exporting a re-export, the HirId is not available. Fortunately, `collect_intra_doc_links` doesn't actually need all the info from a HirId, just the parent module.
2020-09-25Rename `whence` to `span`Camelid-17/+17
It's called `span` elsewhere in the compiler and `span` is also less surprising. `whence` is whimsical, but not super clear :)
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-1/+1
2020-06-25Support configurable deny-warnings for all in-tree crates.Eric Huss-1/+1
2020-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-22/+21
2020-03-06Don't redundantly repeat field names (clippy::redundant_field_names)Matthias Krüger-1/+1
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-2/+2
2020-02-13Constness -> enum Const { Yes(Span), No }Mazdak Farrokhzad-1/+1
Same idea for `Unsafety` & use new span for better diagnostics.
2020-01-19Add `constness` field to `hir::ItemKind::Impl`Dylan MacKenzie-0/+1
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-2/+2
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-4/+4
2019-12-30Retire HirVec.Camille GILLOT-1/+1
2019-12-27Fallout in other crates.Camille GILLOT-34/+34
2019-12-22Format the worldMark Rousskov-17/+17
2019-12-21Use Arena inside hir::StructField.Camille GILLOT-2/+2
2019-12-21Use Arena inside hir::EnumDef.Camille GILLOT-1/+1
2019-12-21Use Arena inside hir::ImplItem.Camille GILLOT-1/+1
2019-12-21Use Arena inside hir::TraitItem.Camille GILLOT-1/+1
2019-12-21Use Arena inside hir::ForeignItem.Camille GILLOT-1/+1
2019-12-21Use Arena inside hir::Item.Camille GILLOT-5/+4
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-1/+1
This is done by moving some data definitions to syntax::expand.
2019-10-22Add missing space in librustdocIgor Aleksanov-1/+1
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-1/+1
2019-08-11rustdoc: Replace HirVec with slices in doctreeMark Rousskov-21/+21
2019-08-10Remove NodeId from doctree::ModuleMark Rousskov-5/+3
2019-08-10Gather deprecation information during cleaningMark Rousskov-18/+0
2019-08-10Gather stability information during cleaningMark Rousskov-17/+3
2019-08-02Replace "existential" by "opaque"varkor-4/+4
2019-07-01rustc: use a separate copy of P for HIR than for AST.Eduard-Mihai Burtescu-1/+1