-
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
hir::Generics: convert has_where_clause_predicates
field into method
#100113
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -1376,7 +1376,6 @@ impl<'hir> LoweringContext<'_, 'hir> { | |||
self.lifetime_res_to_generic_param(ident, node_id, res) | |||
})); | |||
|
|||
let has_where_clause_predicates = !generics.where_clause.predicates.is_empty(); |
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.
Checking that the AST generics' predicates is empty is not the same as checking that the HIR generics' predicates is empty, since we process some bounds like Sized
while lowering.
I'm curious if changing the size of hir generics has any noticeable effect on perf, since most people would be messing with it behind a |
fb4d3e7
to
f8d0dbd
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
☔ The latest upstream changes (presumably #99867) made this pull request unmergeable. Please resolve the merge conflicts. |
Closing due to inactivity! |
Thus reducing struct size.
Recently changed, so r? @compiler-errors