-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
remove KEEP_IN_LOCAL_TCX
flag
#70860
Conversation
if predicates.has_local_value() { | ||
if predicates.needs_infer() { | ||
// FIXME: shouldn't we, you know, actually report an error here? or an ICE? | ||
Err(ErrorReported) |
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.
cc @nikomatsakis This is a scary FIXME comment 😮. Should we add a delay_span_bug
?
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.
added a delay_span_bug
. Should be a relevant error msg afaik
encountered inference variables after
fully_resolve
9f5ebff
to
bc5d6ad
Compare
if !x.val.has_local_value() { | ||
if !x.val.needs_infer() { | ||
return x.eval(tcx, relation.param_env()).val; |
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.
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.
LGTM
1fadf31
to
3358803
Compare
@bors r+ rollup=never |
📌 Commit 3358803b44e40b97eb7f8c8e00ad00c8824ab73a has been approved by |
@bors p=1 |
☔ The latest upstream changes (presumably #70931) made this pull request unmergeable. Please resolve the merge conflicts. |
should once again be ready |
@bors r=nikomatsakis |
📌 Commit fca7d16 has been approved by |
☀️ Test successful - checks-azure |
closes #70285
I did not rename
needs_infer
here as this complex enough as is.Will probably open a followup for that.
r? @eddyb