summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2016-04-08Auto merge of #32773 - mitaa:rdoc-ttfn-json, r=alexcrichtonbors-4/+0
rustdoc: Remove the json-{input, output} format (for reference #32698) fixes #25108 r? @alexcrichton
2016-04-07Make `hir::Visibility` non-copyable and add `ty::Visibility`Jeffrey Seyfried-6/+12
2016-04-07Remove rustdocs json formatmitaa-4/+0
2016-04-06rustc: retire hir::map's paths.Eduard Burtescu-2/+6
2016-04-06rustc: move middle::{def,def_id,pat_util} to hir.Eduard Burtescu-5/+5
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-8/+8
2016-04-02Refactor `HiddenStructField` into `StrippedItem`mitaa-13/+13
2016-04-02Make the rendering process less pass-awaremitaa-11/+18
Instead of hardcoding knowledge about the strip-private pass into the rendering process we represent (some) stripped items as `ItemEnum::StrippedItem`. Rustdoc will, for example, generate redirect pages for public items contained in private modules which have been re-exported to somewhere externally reachable - this will now not only work for the `strip-private` pass, but for other passes as well, such as the `strip-hidden` pass.
2016-03-30move `const_eval` and `check_match` out of `librustc`Oliver Schneider-4/+4
2016-03-28Auto merge of #32461 - mitaa:rdoc-anchors, r=alexcrichtonbors-40/+57
rustdoc: Correct anchor for links to associated trait items fixes #28478 r? @alexcrichton
2016-03-27Load struct-variant data correctly from metadatamitaa-12/+5
2016-03-27Correct anchor for links to associated trait itemsmitaa-28/+52
2016-03-27rustc: move cfg, infer, traits and ty from middle to top-level.Eduard Burtescu-7/+7
2016-03-27rustc: move middle::subst into middle::ty.Eduard Burtescu-3/+3
2016-03-25Make CrateStore::crate_name() return an InternedString to avoid unnecessary ↵Michael Woerister-1/+1
allocations.
2016-03-24remove ErasedRegions from substitutionsNiko Matsakis-2/+2
This hack has long since outlived its usefulness; the transition to trans passing around full substitutions is basically done. Instead of `ErasedRegions`, just supply substitutions with a suitable number of `'static` entries, and invoke `erase_regions` when needed (the latter of which we already do).
2016-03-23Rollup merge of #32434 - mitaa:rdoc-no-inline, r=alexcrichtonEduard-Mihai Burtescu-5/+5
rustdoc: Consider `doc(no_inline)` in crate-local inlining Imports with `doc(no_inline)` will not be inlined, even when `doc(inline)` is present. fixes #32343 r? @alexcrichton
2016-03-22Consider `doc(no_inline)` in crate-local inliningmitaa-5/+5
2016-03-22Omit `pub` for inlined variant-struct fieldsmitaa-1/+1
2016-03-17const_eval: Take just one set of substitutions in lookup_const_by_id.Eduard Burtescu-2/+2
2016-03-14Auto merge of #32169 - mitaa:anon-tip, r=nrcbors-1/+1
Allow custom filenames for anonymous inputs This came out of #29253 but doesn't fix it. I thought it might be worth merging on its own nonetheless.
2016-03-14Allow custom filenames for anonymous inputsmitaa-1/+1
2016-03-14Auto merge of #30587 - oli-obk:eager_const_eval2, r=nikomatsakisbors-3/+3
typestrong const integers ~~It would be great if someone could run crater on this PR, as this has a high danger of breaking valid code~~ Crater ran. Good to go. ---- So this PR does a few things: 1. ~~const eval array values when const evaluating an array expression~~ 2. ~~const eval repeat value when const evaluating a repeat expression~~ 3. ~~const eval all struct and tuple fields when evaluating a struct/tuple expression~~ 4. remove the `ConstVal::Int` and `ConstVal::Uint` variants and replace them with a single enum (`ConstInt`) which has variants for all integral types * `usize`/`isize` are also enums with variants for 32 and 64 bit. At creation and various usage steps there are assertions in place checking if the target bitwidth matches with the chosen enum variant 5. enum discriminants (`ty::Disr`) are now `ConstInt` 6. trans has its own `Disr` type now (newtype around `u64`) This obviously can't be done without breaking changes (the ones that are noticable in stable) We could probably write lints that find those situations and error on it for a cycle or two. But then again, those situations are rare and really bugs imo anyway: ```rust let v10 = 10 as i8; let v4 = 4 as isize; assert_eq!(v10 << v4 as usize, 160 as i8); ``` stops compiling because 160 is not a valid i8 ```rust struct S<T, S> { a: T, b: u8, c: S } let s = S { a: 0xff_ff_ff_ffu32, b: 1, c: 0xaa_aa_aa_aa as i32 }; ``` stops compiling because `0xaa_aa_aa_aa` is not a valid i32 ---- cc @eddyb @pnkfelix related: https://github.com/rust-lang/rfcs/issues/1071
2016-03-11Auto merge of #32133 - alexcrichton:linkchecker, r=brsonbors-2/+26
Add a link validator to rustbuild This commit was originally targeted at just adding a link checking script to the rustbuild system. This ended up snowballing a bit to extend rustbuild to be amenable to various tools we have as part of the build system in general. There's a new `src/tools` directory which has a number of scripts/programs that are purely intended to be used as part of the build system and CI of this repository. This is currently inhabited by rustbook, the error index generator, and a new linkchecker script added as part of this PR. I suspect that more tools like compiletest, tidy scripts, snapshot scripts, etc will migrate their way into this directory over time. The commit which adds the error index generator shows the steps necessary to add new tools to the build system, namely: 1. New steps are defined for building the tool and running the tool 2. The dependencies are configured 3. The steps are implemented In terms of the link checker, these commits do a few things: * A new `src/tools/linkchecker` script is added. This will read an entire documentation tree looking for broken relative links (HTTP links aren't followed yet). * A large number of broken links throughout the documentation were fixed. Many of these were just broken when viewed from core as opposed to std, but were easily fixed. * A few rustdoc bugs here and there were fixed
2016-03-10fix rustdocOliver Schneider-3/+3
2016-03-09Track fn type and lifetime parameters in TyFnDef.Eduard Burtescu-2/+2
2016-03-09Split TyBareFn into TyFnDef and TyFnPtr.Eli Friedman-2/+3
There's a lot of stuff wrong with the representation of these types: TyFnDef doesn't actually uniquely identify a function, TyFnPtr is used to represent method calls, TyFnDef in the sub-expression of a cast isn't correctly reified, and probably some other stuff I haven't discovered yet. Splitting them seems like the right first step, though.
2016-03-08rustdoc: Don't inline all impls all at onceAlex Crichton-2/+26
Right now whenever rustdoc inlines a struct or enum from another crate it ends up inlining *all* `impl` items found in the other crate at the same time. The rationale for this was to discover all trait impls which are otherwise not probed for. This unfortunately picks up a lot of impls of public traits for private types, causing lots of broken links. This commit instead hoards all of those inlined impls into a temporary storage location which is then selectively drawn from whenever we inline a new type. This should ensure that we still inline all relevant impls while avoiding all private ones.
2016-03-04This doesn't seem necessary?mitaa-6/+0
2016-03-04Use `Item::is_*` methods consistentlymitaa-4/+20
2016-03-04Refactor rustdocs attribute handlingmitaa-74/+57
2016-03-04Simplify `if let`/`match` expressionsmitaa-70/+38
2016-03-03Rename middle::ty::ctxt to TyCtxtJeffrey Seyfried-15/+15
2016-03-02Move span into `StructField`Vadim Petrochenkov-24/+11
+ some cleanup in rustdoc
2016-03-02Use numeric field `Name`s ("0", "1" etc) for positional fieldsVadim Petrochenkov-12/+9
2016-02-26Don't inline impls from `doc(hidden)` modulesmitaa-11/+16
2016-02-24Fix source-links for files with absolute-pathsmitaa-1/+8
`clean_srcpath` tries to make the source-path relative to `src_root`, but this didn't work since `src_root` itself wasn't absolute.
2016-02-16Split PatKind::Enum into PatKind::TupleStruct and PatKind::PathVadim Petrochenkov-1/+1
2016-02-14Rename hir::Pat_ and its variantsVadim Petrochenkov-12/+12
2016-02-13Auto merge of #31596 - mitaa:rdoc_assoc_item, r=alexcrichtonbors-4/+2
2016-02-12Fix inherent-associated-const search result linksmitaa-4/+2
Normal constants have their own page while associated constants are embedded within their parent-items page.
2016-02-11[breaking-change] don't glob export ast::MetaItem_Oliver 'ker' Schneider-3/+3
2016-02-11[breaking-change] don't pub export ast::Lit_ variantsOliver Schneider-8/+8
2016-02-11[breaking-change] don't glob export ast::{UintTy, IntTy} variantsOliver Schneider-20/+20
2016-02-11[breaking-change] don't glob export ast::FloatTy variantsOliver Schneider-4/+4
2016-02-11[breaking-change] don't glob import/export syntax::abi enum variantsOliver Schneider-5/+5
2016-02-09Rustdoc - display `since` version for stable itemsWesley Wiser-0/+8
Fixes #27607
2016-01-20Rename Def's variants and don't reexport themVadim Petrochenkov-29/+29
2016-01-20Refactor definitions of ADTs in rustc::middle::defVadim Petrochenkov-9/+10
2016-01-14Support generic associated constsMichael Wu-2/+2