-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Detect trait fulfillment in subst_and_check_impossible_predicates
#96808
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
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.
r=me after tiny nit
@@ -432,6 +432,9 @@ pub fn impossible_predicates<'tcx>( | |||
debug!("impossible_predicates(predicates={:?})", predicates); | |||
|
|||
let result = tcx.infer_ctxt().enter(|infcx| { | |||
// Set tainted by errors to gracefully exit in case of overflow. |
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.
I would mark this as HACK or something, since it's technically not using the flag correctly, right? I think it's fine otherwise.
@bors r=compiler-errors |
📌 Commit 69e5b2f has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (2226f19): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Split from #91743
r? @compiler-errors