-
Notifications
You must be signed in to change notification settings - Fork 13.9k
syntax: Remove traits AttrMetaMethods, AttributeMethods, and AttrNestedMetaItemMethods
#35917
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
Conversation
|
cc @cgswords @eddyb |
e690edc to
a290269
Compare
a290269 to
af064ec
Compare
|
☔ The latest upstream changes (presumably #35854) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r+ |
af064ec to
3e5494c
Compare
|
☔ The latest upstream changes (presumably #35764) made this pull request unmergeable. Please resolve the merge conflicts. |
2534cfc to
fa9aedb
Compare
|
Rebased. |
|
☔ The latest upstream changes (presumably #35979) made this pull request unmergeable. Please resolve the merge conflicts. |
fa9aedb to
469753f
Compare
AttrMetaMethods, AttributeMethods, and AttrMetaListItemMethodsAttrMetaMethods, AttributeMethods, and AttrNestedMetaItemMethods
|
Rebased. |
…=nrc syntax: Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`
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
syntax-[breaking-change] cc #31645
r? @nrc