-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Return early to avoid ICE #72775
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Return early to avoid ICE #72775
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
// Do not check on infer_types to avoid panic in evaluate_obligation. | ||
if ty.has_infer_types() { | ||
return false; | ||
} | ||
let ty = cx.tcx.erase_regions(&ty); |
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.
Isn't src/tools/clippy
a separate repo?
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.
correct
r? @estebank r=me after addressing the comment re:clippy (I think you need to open a PR against https://github.com/rust-lang/rust-clippy instead of changing it here) |
@bors r=estebank We actually have to fix clippy in tree nowadays as CI is blocked on it. |
📌 Commit 7750357 has been approved by |
Return early to avoid ICE Fixes rust-lang#72766
Return early to avoid ICE Fixes rust-lang#72766
Rollup of 10 pull requests Successful merges: - rust-lang#72775 (Return early to avoid ICE) - rust-lang#72795 (Add a test for `$:ident` in proc macro input) - rust-lang#72822 (remove trivial calls to mk_const) - rust-lang#72825 (Clarify errors and warnings about the transition to the new asm!) - rust-lang#72827 (changed *nix to Unix-like) - rust-lang#72880 (Clean up E0637 explanation) - rust-lang#72886 (Remove allow missing_debug_implementations for MaybeUninit) - rust-lang#72889 (rustc: Remove the `--passive-segments` LLD flag on wasm) - rust-lang#72891 (Add associated consts MIN/MAX for Wrapping<Int>) - rust-lang#72893 (test miri-unleash TLS accesses) Failed merges: r? @ghost
Fixes #72766