Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch up libsyntax breaking changes #36066

Merged
merged 24 commits into from
Aug 30, 2016
Merged

Batch up libsyntax breaking changes #36066

merged 24 commits into from
Aug 30, 2016

Conversation

jseyfried
Copy link
Contributor

@jseyfried jseyfried commented Aug 28, 2016

Batch of the following syntax-[breaking-change] changes:

r? @Manishearth

petrochenkov and others added 20 commits August 18, 2016 01:07
and refactor `ast::PathListItemKind::Ident` -> `ast::PathListItem_`.
and refacotor `hir::PathListItem_::Ident` -> `hir::PathListItem_`.
…=eddyb

Refactor `PathListItem`s

This refactors away variant `Mod` of `ast::PathListItemKind` and refactors the remaining variant `Ident` to a struct `ast::PathListItem_`.
Fix #[derive] for empty tuple structs/variants

This was missing from rust-lang#35138
Implement RFC#1559: allow all literals in attributes

Implemented rust-lang/rfcs#1559, tracked by rust-lang#34981.
…=nrc

syntax: Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`
@Manishearth
Copy link
Member

@bors r+ p=10

@bors
Copy link
Contributor

bors commented Aug 28, 2016

📌 Commit 9ab0633 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Aug 28, 2016

⌛ Testing commit 9ab0633 with merge 27ab959...

@bors
Copy link
Contributor

bors commented Aug 28, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@petrochenkov
Copy link
Contributor

petrochenkov commented Aug 28, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

run-pass\union\union-xcrate.rs fails.
Can you just remove this test? Something is legitimately wrong there, but I don't want to block the batch, I'll investigate today or tomorrow.

@jseyfried
Copy link
Contributor Author

@bors r=Manishearth p=10

@bors
Copy link
Contributor

bors commented Aug 29, 2016

📌 Commit 3d881a8 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Aug 29, 2016

📌 Commit cdde06e has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Aug 29, 2016

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Aug 29, 2016

📌 Commit cdde06e has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Aug 29, 2016

⌛ Testing commit cdde06e with merge 13349fe...

@bors
Copy link
Contributor

bors commented Aug 29, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@petrochenkov
Copy link
Contributor

@jseyfried

I removed #36016 and instead added a commit that future proofs the AST so that #36016 is no longer a syntax-[breaking-change].

There are also derive changes - supports_unions: bool needs to be added to deriving::generic::TraitDef for future proofing, see d7ed590 and 49eb1d2.

@jseyfried
Copy link
Contributor Author

@petrochenkov Good point, I added supports_unions: bool in the above commit.

@jseyfried
Copy link
Contributor Author

@bors r=Manishearth p=10

@bors
Copy link
Contributor

bors commented Aug 30, 2016

📌 Commit 04f54b2 has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Aug 30, 2016

⌛ Testing commit 04f54b2 with merge 5998b37...

@bors
Copy link
Contributor

bors commented Aug 30, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@jseyfried
Copy link
Contributor Author

@bors r=Manishearth p=10

@bors
Copy link
Contributor

bors commented Aug 30, 2016

📌 Commit 02f081c has been approved by Manishearth

@bors
Copy link
Contributor

bors commented Aug 30, 2016

⌛ Testing commit 02f081c with merge 71ee82a...

bors added a commit that referenced this pull request Aug 30, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants