summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2016-01-14Support generic associated constsMichael Wu-2/+2
2016-01-13Fix rustdoc reexports.Lee Jeffery-1/+1
2015-12-28Rename ExplicitSelfCategory's variants and stop re-exporting them.Ms2ger-6/+6
2015-12-18Abstract away differences between Vec and ptr::P in HIRVadim Petrochenkov-2/+7
2015-12-18Deprecate name `OwnedSlice` and don't use itVadim Petrochenkov-1/+1
2015-12-12Support `#[deprecated]` in rustdocVadim Petrochenkov-0/+50
2015-12-12Implement `#[deprecated]` attribute (RFC 1270)Vadim Petrochenkov-10/+10
2015-12-05Reuse `record_extern_fqn`mitaa-23/+8
These locations erroneously used the local item-path instead of the extern item-path.
2015-12-03Use the extern item-path for documentation linksmitaa-1/+1
The local item-path includes the local crates path to the extern crate declaration which breaks cross-crate rustdoc links if the extern crate is not linked into the crate root or renamed via `extern foo as bar`.
2015-11-28Auto merge of #30074 - jonas-schievink:macro-doc, r=sanxiynbors-2/+5
Fixes #17616 New docs for `panic!`: ```rust macro_rules! panic { () => { ... }; ($msg:expr) => { ... }; ($fmt:expr, $($arg:tt)+) => { ... }; } ``` New docs for `assert!`: ```rust macro_rules! assert { ( $ cond : expr ) => { ... }; ( $ cond : expr , $ ( $ arg : tt ) + ) => { ... }; } ``` <sup>not pretty, but at least it's not worse :joy:
2015-11-28Auto merge of #29383 - petrochenkov:empstr, r=pnkfelixbors-2/+2
Fixes https://github.com/rust-lang/rust/issues/28692 Fixes https://github.com/rust-lang/rust/issues/28992 Fixes some other similar issues (see the tests) [breaking-change], needs crater run (cc @brson or @alexcrichton ) The pattern with parens `UnitVariant(..)` for unit variants seems to be popular in rustc (see the second commit), but mostly used by one person (@nikomatsakis), according to git blame. If it causes breakage on crates.io I'll add an exceptional case for it.
2015-11-26;Jonas Schievink-1/+1
2015-11-26rustdoc: only show macro arm's lhsJonas Schievink-2/+5
2015-11-26fix tidyAriel Ben-Yehuda-2/+2
2015-11-26fix tests & rustdocAriel Ben-Yehuda-11/+11
2015-11-26make check worksAriel Ben-Yehuda-56/+48
2015-11-19Show constness for functions of reexported docsmitaa-2/+15
2015-11-19Fix the falloutVadim Petrochenkov-2/+2
2015-11-17Auto merge of #29766 - oli-obk:impl_item, r=nikomatsakisbors-3/+3
[breaking change] I'm not sure if those renames are ok. [TokenType::Tt* to TokenType::*](https://github.com/rust-lang/rust/pull/29582) was obvious, but for all those Item-enums it's less obvious to me what the right way forward is due to the underscore.
2015-11-16Remove `TyParen` from HIRVadim Petrochenkov-1/+0
2015-11-16ImplItem_ -> ImplItemKind renameOliver Schneider-3/+3
2015-11-16rename ImplItem_::*ImplItem to ImplItem_::*Oliver Schneider-3/+3
[breaking change]
2015-11-06librustdoc: improve testnames for doctestsKevin Butler-2/+12
2015-10-31Remove PatWildMultiVadim Petrochenkov-2/+1
2015-10-25syntax/rustc_front: Simplify VariantData::fieldsVadim Petrochenkov-2/+2
And use VariantData instead of P<VariantData> in Item_ and Variant_
2015-10-16Auto merge of #29014 - petrochenkov:stability, r=brsonbors-23/+27
Stricter checking of stability attributes + enforcement of their invariants at compile time (+ removed dead file librustc_front/attr.rs) I intended to enforce use of `reason` for unstable items as well (it normally presents for new items), but it turned out too intrusive, many older unstable items don't have `reason`s. r? @aturon I'm studying how stability works and do some refactoring along the way, so it's probably not the last PR.
2015-10-15rustdoc: Report deprecation reason firstVadim Petrochenkov-3/+8
2015-10-13Merge VariantData and VariantData_Vadim Petrochenkov-1/+1
2015-10-13Merge struct fields and struct kindVadim Petrochenkov-4/+4
2015-10-13Dict -> Struct, StructDef -> VariantData, def -> dataVadim Petrochenkov-4/+4
2015-10-13Remove now redundant NodeId from VariantVadim Petrochenkov-1/+1
2015-10-13Decouple structure kinds from NodeIdsVadim Petrochenkov-17/+2
2015-10-13Unify structures and enum variants in HIRVadim Petrochenkov-1/+11
2015-10-13Refactor attr::StabilityVadim Petrochenkov-23/+22
Stricter checking + enforcement of invariants at compile time
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-1/+1
2015-10-01Convert DefId to use DefIndex, which is an index into a list ofNiko Matsakis-5/+6
paths, and construct paths for all definitions. Also, stop rewriting DefIds for closures, and instead just load the closure data from the original def-id, which may be in another crate.
2015-10-01build up a set of node-ids that we can construct def-ids fromNiko Matsakis-1/+1
2015-10-01Make calling def_id on a DefSelfTy an error; the previous defids thatNiko Matsakis-1/+7
were returned, either the trait or the *self type itself*, were not particularly representative of what the Def is (a type parameter). Rewrite paths to handle this case specially, just as they handle the primitive case specifically. This entire `def_id` codepath is kind of a mess.
2015-10-01move direct accesses of `node` to go through `as_local_node_id`, unlessNiko Matsakis-6/+5
they are being used as an opaque "position identifier"
2015-10-01move job of creating local-def-ids to ast-map (with a few stragglers)Niko Matsakis-24/+24
2015-10-01move LOCAL_CRATE to cstoreNiko Matsakis-1/+2
2015-10-01kill the fake provided method stubsAriel Ben-Yehuda-7/+5
this simplifies the code while reducing the size of libcore.rlib by 3.3 MiB (~1M of which is bloat a separate patch of mine removes too), while reducing rustc memory usage on small crates by 18MiB. This also simplifies the code considerably.
2015-09-23Remove random Idents outside of libsyntaxVadim Petrochenkov-8/+2
2015-09-22Use Names in the remaining HIR structures with exception of...Vadim Petrochenkov-3/+3
PathSegment, PatIdent, ExprWhile, ExprLoop, ExprBreak and ExprAgain - they need Idents for resolve
2015-09-22Use Names in path fragments and MacroDefVadim Petrochenkov-4/+4
2015-09-22Use Names in HIR ItemsVadim Petrochenkov-3/+3
2015-09-17Remove Visibility field from enum variantsSimonas Kazlauskas-1/+1
Followup on #28440
2015-09-16Use ast attributes every where (remove HIR attributes).Nick Cameron-46/+44
This could be a [breaking-change] if your lint or syntax extension (is that even possible?) uses HIR attributes or literals.
2015-09-03Use consistent terminology for byte string literalsVadim Petrochenkov-1/+1
Avoid confusion with binary integer literals and binary operator expressions in libsyntax
2015-09-03Add an intital HIR and lowering stepNick Cameron-172/+163