-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Use delay_span_bug
for "Failed to unify obligation"
#60644
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
Conversation
r? @varkor (rust_highfive has picked a reviewer for you, use r? to override) |
cc @rust-lang/compiler |
@bors r+ rollup |
📌 Commit 0fce5c1 has been approved by |
Use `delay_span_bug` for "Failed to unify obligation" Fix rust-lang#60283.
Rollup of 8 pull requests Successful merges: - #59979 (to_xe_bytes for isize and usize returns an array of different size) - #60491 (std: Update compiler-builtins crate) - #60550 (Add tests for concrete const types) - #60572 (Add test for #59972) - #60627 (test for #50518) - #60634 (Document + Cleanup lang_items.rs) - #60641 (Instead of ICEing on incorrect pattern, use delay_span_bug) - #60644 (Use `delay_span_bug` for "Failed to unify obligation") Failed merges: r? @ghost
@rust-lang/compiler should verify what the long term solution is for this, as it is doing nothing more than masking the underlying issue, I believe. |
imo this is a totally valid fix. If we ever move to supporting this kind of inference, the test will stop hitting the |
discussed at T-compiler meeting. accepted for beta-backport. |
[beta] Rollup backports Rolled up: * [beta] save-analysis: Pull associated type definition using `qpath_def` #60881 * [beta] Update clippy #60918 Cherry-picked: * Instead of ICEing on incorrect pattern, use delay_span_bug #60641 * Use `delay_span_bug` for "Failed to unify obligation" #60644 r? @ghost
Fix #60283.