Niko Matsakis
b10b98169f
hash the contents of impl-item-ref by adding them to visitor
...
Also simplify some of the `ty::AssociatedItem` representation,
in particular by folding `has_value` into `hir::Defaultness`
2016-11-17 13:44:22 -05:00
Andy Russell
30f75e396a
do not use deprecated text for unstable docs
2016-11-13 19:00:56 -05:00
Eduard Burtescu
3f9eba1c7c
rustc: clean up lookup_item_type and remove TypeScheme.
2016-11-10 16:49:53 +02:00
Eduard Burtescu
de0ffadb67
rustc: unify and simplify managing associated items.
2016-11-10 02:06:34 +02:00
Nicholas Nethercote
00e48affde
Replace FnvHasher use with FxHasher.
...
This speeds up compilation by 3--6% across most of rustc-benchmarks.
2016-11-08 15:14:59 +11:00
Mark-Simulacrum
982a48575b
Utilize AccumulateVec to avoid heap allocations in mk_{substs, type_list, tup} calls.
2016-10-25 20:06:17 -06:00
Vadim Petrochenkov
75d6522b9a
Eliminate ty::VariantKind in favor of def::CtorKind
2016-10-04 22:22:36 +03:00
Vadim Petrochenkov
d19c16acfb
Fix cross-crate resolution of half-items created by export shadowing
2016-10-04 22:20:37 +03:00
Corey Farwell
35d214afe6
Remove redundant 'Variant' in variant names, stop reexporting.
2016-10-02 21:58:23 -04:00
Corey Farwell
88d41441f6
Migrate VariantKind constructor to Clean impl.
...
https://github.com/rust-lang/rust/pull/36903#discussion_r81477884
2016-10-02 21:58:22 -04:00
Corey Farwell
5b9ba4c550
Remove redundant 'Import' in variant names, stop reexporting.
2016-10-02 21:58:21 -04:00
Corey Farwell
a400cccd54
Cleanup return statements.
2016-10-02 21:58:20 -04:00
Corey Farwell
6d0894940f
Migrate VariantKind construction function to associated function.
2016-10-02 21:58:20 -04:00
Corey Farwell
0d0f1b4690
Rename method 'to_string' to match conventions.
2016-10-02 21:58:19 -04:00
Corey Farwell
c3bc905e5f
Remove redundant 'Type' in variant names, stop reexporting.
2016-10-02 21:58:18 -04:00
bors
ab38d52df7
Auto merge of #36885 - Manishearth:rollup, r=Manishearth
...
Rollup of 6 pull requests
- Successful merges: #36865 , #36872 , #36873 , #36877 , #36880 , #36882
- Failed merges:
2016-10-01 10:17:20 -07:00
Corey Farwell
c66c4533d1
Migrate Item ➡ ItemType function to method.
2016-09-30 15:54:53 -04:00
Jonas Schievink
cf0b7bdd0c
Call arrays "arrays" instead of "vecs" internally
2016-09-28 22:30:30 +02:00
Eduard Burtescu
a96abca2a4
rustc_metadata: replace RBML with a simple and type-safe scheme.
2016-09-20 20:08:05 +03:00
Eduard Burtescu
24aef24e1a
rustc_metadata: split the Def description of a DefId from item_children.
2016-09-20 20:08:05 +03:00
Eduard Burtescu
adddfccf2b
rustc_metadata: move all encoding/decoding helpers to methods.
2016-09-20 20:08:05 +03:00
Eduard Burtescu
ef4352fba6
rustc_metadata: group information into less tags.
2016-09-20 20:08:04 +03:00
Eduard Burtescu
8734aaa33e
rustc_metadata: move more RBML tags to auto-serialization.
2016-09-20 20:08:02 +03:00
Eduard Burtescu
02c4155d2c
rustc: remove hir::fold.
2016-09-20 20:08:00 +03:00
Eduard Burtescu
903ec52ba9
rustc: replace uses of NodeId in Def, other than closures and labels.
2016-09-20 20:08:00 +03:00
Eduard Burtescu
fc363cb482
rustc_metadata: go only through rustc_serialize in astencode.
2016-09-20 20:07:54 +03:00
Vadim Petrochenkov
f2b672d556
Refactor TyStruct/TyEnum/TyUnion into TyAdt
2016-09-08 22:17:53 +03:00
bors
9627e9ef6e
Auto merge of #36266 - Sawyer47:issue-35169, r=alexcrichton
...
rustdoc: Filter more incorrect methods inherited through Deref
Old code filtered out only static methods. This code also excludes &mut self methods if there is no DerefMut implementation.
Fixes #35169
2016-09-07 12:30:03 -07:00
Piotr Jawniak
915bbdac58
rustdoc: Filter more incorrect methods inherited through Deref
...
Old code filtered out only static methods. This code also excludes
&mut self methods if there is no DerefMut implementation
2016-09-05 20:24:55 +02:00
Vadim Petrochenkov
e05e74ac83
Replace _, _ with ..
2016-09-04 12:30:33 +03:00
Vadim Petrochenkov
6792bd99fe
Support unions in rustdoc
2016-09-03 13:39:34 +03:00
Vadim Petrochenkov
cbd912baba
Add union types
2016-09-03 13:37:25 +03:00
Ariel Ben-Yehuda
7b92d05804
turn the RFC1592 warnings into hard errors
...
The warnings have already reached stable
The test rfc1592_deprecated is covered by `bad_sized` and
`unsized6`.
Fixes #33242
Fixes #33243
2016-09-01 13:34:56 +03:00
bors
71ee82a8aa
Auto merge of #36066 - jseyfried:rollup, r=Manishearth
...
Batch up libsyntax breaking changes
Batch of the following syntax-[breaking-change] changes:
- #35591 : Add a field `span: Span` to `ast::Generics`.
- #35618 : Remove variant `Mod` of `ast::PathListItemKind` and refactor the remaining variant `ast::PathListKind::Ident` to a struct `ast::PathListKind_`.
- #35480 : Change uses of `Constness` in the AST to `Spanned<Constness>`.
- c.f. `MethodSig`, `ItemKind`
- #35728 : Refactor `cx.pat_enum()` into `cx.pat_tuple_struct()` and `cx.pat_path()`.
- #35850 : Generalize the elements of lists in attributes from `MetaItem` to a new type `NestedMetaItem` that can represent a `MetaItem` or a literal.
- #35917 : Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`.
- Besides removing imports of these traits, this won't cause fallout.
- Add a variant `Union` to `ItemKind` to future proof for `union` (c.f. #36016 ).
- Remove inherent methods `attrs` and `fold_attrs` of `Annotatable`.
- Use methods `attrs` and `map_attrs` of `HasAttrs` instead.
r? @Manishearth
2016-08-30 00:36:19 -07:00
Jeffrey Seyfried
c14ff2884d
Rollup merge of #35917 - jseyfried:remove_attr_ext_traits, r=nrc
...
syntax: Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`
2016-08-28 10:40:04 +00:00
Jeffrey Seyfried
6303640e85
Rollup merge of #35850 - SergioBenitez:master, r=nrc
...
Implement RFC#1559: allow all literals in attributes
Implemented rust-lang/rfcs#1559, tracked by #34981 .
2016-08-28 10:38:19 +00:00
Jeffrey Seyfried
37f30173a0
Rollup merge of #35618 - jseyfried:ast_view_path_refactor, r=eddyb
...
Refactor `PathListItem`s
This refactors away variant `Mod` of `ast::PathListItemKind` and refactors the remaining variant `Ident` to a struct `ast::PathListItem_`.
2016-08-28 10:31:24 +00:00
Jonas Schievink
5adf003b99
Use deterministic FnvHash{Map,Set} in rustdoc
2016-08-27 15:20:45 +02:00
Eduard Burtescu
7a8d4822d8
rustc: use Vec<Kind> in Substs, where Kind is a &TyS | &Region tagged pointer.
2016-08-27 01:15:07 +03:00
Eduard Burtescu
dffd238f8b
rustc: pass ty::Region behind an interned 'tcx reference.
2016-08-27 01:15:06 +03:00
Eduard Burtescu
5222fa58a1
rustc: use accessors for Substs::{types,regions}.
2016-08-27 00:25:04 +03:00
Jeffrey Seyfried
bfb01bbb26
Refactor away AttrMetaMethods.
2016-08-25 20:41:40 +00:00
Jeffrey Seyfried
e264828b27
Refactor away AttributeMethods.
2016-08-25 20:41:39 +00:00
Jeffrey Seyfried
4eb08bb2ab
Refactor away AttrNestedMetaItemMethods.
2016-08-25 20:41:32 +00:00
Sergio Benitez
8250a26b5b
Implement RFC#1559: allow all literals in attributes.
2016-08-25 13:25:22 -07:00
Corey Farwell
42e8ac87eb
Implement From<ast::FloatTy> for PrimitiveType.
2016-08-24 23:27:25 -07:00
Corey Farwell
168cfea8af
Implement From<ast::UintTy> for PrimitiveType.
2016-08-24 23:27:25 -07:00
Corey Farwell
8a6f7a5ced
Implement From<ast::IntTy> for PrimitiveType.
2016-08-24 23:27:25 -07:00
Corey Farwell
5c849f4a50
Remove unnecessary 'Primitive' prefix on PrimitiveType enum variants.
2016-08-24 23:27:25 -07:00
Corey Farwell
9dde563990
Stop reexporting PrimitiveType enum in librustdoc.
2016-08-24 23:27:24 -07:00