Skip to content
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

Use delay_span_bug for "Failed to unify obligation" #60644

Merged
merged 1 commit into from
May 9, 2019

Conversation

estebank
Copy link
Contributor

@estebank estebank commented May 8, 2019

Fix #60283.

@rust-highfive
Copy link
Collaborator

r? @varkor

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 8, 2019
@estebank
Copy link
Contributor Author

estebank commented May 8, 2019

cc @rust-lang/compiler

@varkor
Copy link
Member

varkor commented May 8, 2019

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 8, 2019

📌 Commit 0fce5c1 has been approved by varkor

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 8, 2019
Centril added a commit to Centril/rust that referenced this pull request May 8, 2019
Use `delay_span_bug` for "Failed to unify obligation"

Fix rust-lang#60283.
bors added a commit that referenced this pull request May 8, 2019
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
@bors bors merged commit 0fce5c1 into rust-lang:master May 9, 2019
@bors
Copy link
Contributor

bors commented May 9, 2019

⌛ Testing commit 0fce5c1 with merge 9f83961...

@estebank estebank added the beta-nominated Nominated for backporting to the compiler in the beta channel. label May 9, 2019
@estebank
Copy link
Contributor Author

estebank commented May 9, 2019

@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.

@oli-obk
Copy link
Contributor

oli-obk commented May 10, 2019

imo this is a totally valid fix. If we ever move to supporting this kind of inference, the test will stop hitting the delay_span_bug and everything should work out.

@pnkfelix
Copy link
Member

discussed at T-compiler meeting. accepted for beta-backport.

@pnkfelix pnkfelix added the beta-accepted Accepted for backporting to the compiler in the beta channel. label May 16, 2019
@pietroalbini pietroalbini removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label May 17, 2019
bors added a commit that referenced this pull request May 18, 2019
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rust panics at typecheck ICE stable 1.34.1 and nightly 1.35.0
7 participants