]> git.lizzy.rs Git - rust.git/commit
Auto merge of #36066 - jseyfried:rollup, r=Manishearth
authorbors <bors@rust-lang.org>
Tue, 30 Aug 2016 07:36:19 +0000 (00:36 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2016 07:36:19 +0000 (00:36 -0700)
commit71ee82a8aa0c02fc2c73e84f40bdb55512d10938
treee2ead4306f12a3f92170850edc1176667765a9d0
parentaddb7537620feb228d6c9fe149b9c069d3686199
parent02f081c0b53cad0bcfe1d20ebb892f06ffa996ff
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
src/librustc/middle/dead.rs
src/librustc_metadata/encoder.rs
src/librustc_metadata/macro_import.rs
src/librustc_resolve/lib.rs
src/librustc_trans/base.rs
src/librustc_typeck/check/intrinsic.rs
src/librustc_typeck/check/mod.rs
src/librustdoc/clean/mod.rs
src/librustdoc/test.rs
src/librustdoc/visit_ast.rs