-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement #[cfg]
in where
clauses
#132388
base: master
Are you sure you want to change the base?
Conversation
HIR ty lowering was modified cc @fmease Changes to the size of AST and/or HIR nodes. cc @nnethercote |
6b5f780
to
416f1eb
Compare
This comment has been minimized.
This comment has been minimized.
416f1eb
to
2aa303c
Compare
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @frank-king for the work. I haven't looked deeply into the parser code yet, I need to familiarize myself with it first.
#[cfg]
in where
clauses#[cfg]
in where
clauses
2aa303c
to
f3192a5
Compare
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
f3192a5
to
1a8208c
Compare
This comment has been minimized.
This comment has been minimized.
1a8208c
to
db4c4fd
Compare
This comment was marked as resolved.
This comment was marked as resolved.
db4c4fd
to
d8db4cf
Compare
This comment has been minimized.
This comment has been minimized.
d8db4cf
to
d0cdfab
Compare
…=<try> Refactor `where` predicates, and reserve for attributes support Refactor `WherePredicate` to `WherePredicateKind`, and reserve for attributes support in `where` predicates. This is a part of rust-lang#115590 and is split from rust-lang#132388. r? petrochenkov
…=cjgillot Refactor `where` predicates, and reserve for attributes support Refactor `WherePredicate` to `WherePredicateKind`, and reserve for attributes support in `where` predicates. This is a part of rust-lang#115590 and is split from rust-lang#132388. r? petrochenkov
d0cdfab
to
c34c841
Compare
Changes to the size of AST and/or HIR nodes. cc @nnethercote |
This comment has been minimized.
This comment has been minimized.
c34c841
to
3411185
Compare
@rustbot ready |
tuple_struct_body = Some(body); | ||
break; | ||
let predicate = | ||
self.collect_tokens(None, attrs, ForceCollect::Yes, |this, attrs| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.collect_tokens(None, attrs, ForceCollect::Yes, |this, attrs| { | |
self.collect_tokens(None, attrs, ForceCollect::No, |this, attrs| { |
(I didn't finish the full review yet.) |
☔ The latest upstream changes (presumably #129514) made this pull request unmergeable. Please resolve the merge conflicts. |
This PR implements #115590, which supports
#[cfg]
attributes inwhere
clauses.The biggest change is, that it adds
AttrsVec
andNodeId
to theast::WherePredicate
andHirId
to thehir::WherePredicate
.