summary refs log tree commit diff
path: root/src/librustdoc/clean/inline.rs
AgeCommit message (Collapse)AuthorLines
2016-12-30Make rustdoc aware of the primitive i128 typeest31-0/+2
Many thanks to ollie27 for spotting all the places.
2016-12-28rustdoc: pretty-print nested bodies in inlined constants.Eduard-Mihai Burtescu-4/+27
2016-12-28rustc: always print nested nodes where a HIR map is available.Eduard-Mihai Burtescu-5/+4
2016-12-28rustc: simplify constant cross-crate loading and rustc_passes::consts.Eduard-Mihai Burtescu-12/+4
2016-12-02Auto merge of #38053 - eddyb:lazy-9, r=nikomatsakisbors-3/+2
[9/n] rustc: move type information out of AdtDef and TraitDef. _This is part of a series ([prev](https://github.com/rust-lang/rust/pull/37688) | [next]()) of patches designed to rework rustc into an out-of-order on-demand pipeline model for both better feature support (e.g. [MIR-based](https://github.com/solson/miri) early constant evaluation) and incremental execution of compiler passes (e.g. type-checking), with beneficial consequences to IDE support as well. If any motivation is unclear, please ask for additional PR description clarifications or code comments._ <hr> Both `AdtDef` and `TraitDef` contained type information (field types, generics and predicates) which was required to create them, preventing their use before that type information exists, or in the case of field types, *mutation* was required, leading to a variance-magicking implementation of `ivar`s. This PR takes that information out and the resulting cleaner setup could even eventually end up merged with HIR, because, just like `AssociatedItem` before it, there's no dependency on types anymore. (With one exception, variant discriminants should probably be moved into their own map later.)
2016-11-30rustdoc: link to cross-crate sources directly.Eduard-Mihai Burtescu-5/+5
2016-11-29rustc: remove type information from TraitDef.Eduard-Mihai Burtescu-3/+2
2016-11-28rustc: embed path resolutions into the HIR instead of keeping DefMap.Eduard-Mihai Burtescu-11/+8
2016-11-24rustdoc: we can now assume DocContext always has a TyCtxt.Eduard-Mihai Burtescu-105/+84
2016-11-24rustdoc: use libsyntax ast::Attribute instead of "cleaning" them.Eduard-Mihai Burtescu-4/+4
2016-11-17hash the contents of impl-item-ref by adding them to visitorNiko Matsakis-2/+2
Also simplify some of the `ty::AssociatedItem` representation, in particular by folding `has_value` into `hir::Defaultness`
2016-11-10rustc: clean up lookup_item_type and remove TypeScheme.Eduard Burtescu-27/+21
2016-11-10rustc: unify and simplify managing associated items.Eduard Burtescu-28/+23
2016-11-08Replace FnvHasher use with FxHasher.Nicholas Nethercote-3/+3
This speeds up compilation by 3--6% across most of rustc-benchmarks.
2016-10-06Rollup merge of #36966 - ollie27:rustdoc_mut_ptr_impl, r=alexcrichtonJonathan Turner-2/+2
rustdoc: Fix missing *mut T impl `impl<T> *mut T` is currently missing from https://doc.rust-lang.org/nightly/std/primitive.pointer.html and this adds it back.
2016-10-04Turn some impossible definitions into ICEsVadim Petrochenkov-10/+8
2016-10-04Eliminate ty::VariantKind in favor of def::CtorKindVadim Petrochenkov-6/+6
2016-10-04Fix cross-crate resolution of half-items created by export shadowingVadim Petrochenkov-3/+4
2016-10-04rustdoc: Fix missing *mut T implOliver Middleton-2/+2
`impl<T> *mut T` is currently missing from https://doc.rust-lang.org/nightly/std/primitive.pointer.html and this adds it back.
2016-10-02Cleanup `return` statements.Corey Farwell-1/+1
2016-10-02Remove redundant 'Type' in variant names, stop reexporting.Corey Farwell-9/+9
2016-09-20rustc_metadata: split the Def description of a DefId from item_children.Eduard Burtescu-4/+6
2016-09-20rustc_metadata: group information into less tags.Eduard Burtescu-12/+6
2016-09-20rustc: remove ImplOrTraitItemId and TraitDef's associated_type_names.Eduard Burtescu-4/+2
2016-09-20rustc_metadata: move more RBML tags to auto-serialization.Eduard Burtescu-47/+63
2016-09-13Remove some ancient code providing special support for newtypesVadim Petrochenkov-6/+5
2016-09-08Refactor `TyStruct`/`TyEnum`/`TyUnion` into `TyAdt`Vadim Petrochenkov-1/+1
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-1/+1
2016-09-03Fix rebase + address commentsVadim Petrochenkov-1/+1
2016-09-03Support unions in rustdocVadim Petrochenkov-0/+19
2016-08-27Use deterministic `FnvHash{Map,Set}` in rustdocJonas Schievink-3/+3
2016-08-17rustc: remove ParamSpace from Substs.Eduard Burtescu-2/+0
2016-08-17rustc: split Generics of a method from its parent Generics.Eduard Burtescu-10/+11
2016-08-17rustc: reduce Substs and Generics to a simple immutable API.Eduard Burtescu-12/+8
2016-08-17rustc: use Vec instead of VecPerParamSpace for ty::GenericPredicates.Eduard Burtescu-4/+29
2016-07-06rustc: Update stage0 to beta-2016-07-06Alex Crichton-2/+1
Hot off the presses, let's update our stage0 compiler!
2016-06-29Rollup merge of #34105 - ollie27:rustdoc_derived, r=alexcrichtonJeffrey Seyfried-1/+0
rustdoc: Remove Derived Implementations title As far as I know whether a trait was derived or not does not change the public API so there is no need to include this information in the docs. This title currently just adds an extra divide in the list of trait implementations which I don't think needs to be there.
2016-06-20rustdoc: Fix a couple of issues with src links to external cratesOliver Middleton-2/+8
- src links/redirects to extern fn from another crate had an extra '/'. - src links to `pub use` of a crate module had an extra '/'. - src links to renamed reexports from another crate used the new name for the link but should use the original name.
2016-06-10Introduce TyCtxt::expect_def/expect_resolution helpers and use them where ↵Vadim Petrochenkov-2/+2
possible
2016-06-09fix damage in librustcAriel Ben-Yehuda-4/+5
2016-06-05rustdoc: Remove Derived Implementations titleOliver Middleton-1/+0
As far as I know whether a trait was derived or not does not change the public API so there is no need to include this information in the docs. This title currently just adds an extra divide in the list of trait implementations which I don't think needs to be there.
2016-05-14Remove ExplicitSelf from HIRVadim Petrochenkov-2/+1
2016-05-11rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.Eduard Burtescu-28/+31
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-13/+13
2016-05-11rustc: Avoid free functions taking &TyCtxt and &InferCtxt.Eduard Burtescu-11/+10
2016-05-08Auto merge of #33091 - sanxiyn:unused-trait-import-3, r=nrcbors-2/+1
Warn unused trait imports, rebased Rebase of #30021. Fix #25730.
2016-05-03rustdoc: fix inserting source code spans for constant valuesGeorg Brandl-5/+4
This will go wrong when the constants partially result from macro expansion. Instead, use the expressions and pretty-print them as Rust code. Fixes: #33302
2016-05-03Remove unused trait imports flagged by lintSeo Sanghyeon-2/+1
2016-04-24Remove, now unnecessary, workaroundmitaa-18/+2
This used to be done to avoid inlining impls referencing private items, but is now unnecessary since we actually check that impls do not reference non-doc-reachable items.
2016-04-24Inline impls on traits toomitaa-0/+1