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
Corey Farwell
30397aee0d
Migrate ItemType::from_item to convert::From.
2016-08-24 23:25:26 -07:00
Corey Farwell
28ecfb691d
Move ItemEnum → Generics logic into method on ItemEnum.
2016-08-24 23:25:26 -07:00
Jeffrey Seyfried
9d99fe98ad
Fix fallout in rustdoc
.
2016-08-21 22:59:40 +00:00
Nick Cameron
da1f7731f6
rustdoc: remove the !
from macro URLs and titles
2016-08-18 15:40:56 +12:00
Eduard Burtescu
9453d9b8ad
rustc: remove ParamSpace from Substs.
2016-08-17 06:32:00 +03:00
Eduard Burtescu
6f5e455c2d
rustc: split GenericPredicates of a method from its parent predicates.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
3e74e5bffe
rustc: split Generics of a method from its parent Generics.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
c1cfd58cbd
rustc: remove SelfSpace from ParamSpace.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
4158673ad7
rustc: reduce Substs and Generics to a simple immutable API.
2016-08-17 05:50:57 +03:00
Eduard Burtescu
4b25f08512
rustc: move trait objects from TraitRef to ExistentialTraitRef.
2016-08-17 05:50:57 +03:00