-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
compiler/rustc_borrowck/src/borrow_set.rs:250:17: found two uses for 2-phase borrow temporary #128097
Comments
Could you provide enough code that would be needed to compile and reproduce the issue? @rustbot labels +S-needs-repro |
@iduanyingjie note that still, it would be nice to see a reproducible example, as this is not an error I'd expect to see. |
Reduced example: #![feature(explicit_tail_calls)]
fn cut(x: &mut ()) {
if let Some(_) = Some(Box::new(())) {
become cut(x);
}
} |
The repro ICEs on beta even without a feature gate. |
@lqd the ICEs without a feature gate is more a general but that we continue complication even if the gate is not enabled, not necessarily specific to explicit tail calls |
Minimized a little bit more: #![feature(explicit_tail_calls)]
fn f(x: &mut ()) {
let _y = String::new();
become f(x);
} |
add crashtests for several old unfixed ICEs Adds several new crashtests for some older ICEs that did not yet have any. Tests were added for rust-lang#128097, rust-lang#119095, rust-lang#117460 and rust-lang#126443.
add crashtests for several old unfixed ICEs Adds several new crashtests for some older ICEs that did not yet have any. Tests were added for rust-lang#128097, rust-lang#119095, rust-lang#117460 and rust-lang#126443.
Rollup merge of rust-lang#129780 - cyrgani:master, r=compiler-errors add crashtests for several old unfixed ICEs Adds several new crashtests for some older ICEs that did not yet have any. Tests were added for rust-lang#128097, rust-lang#119095, rust-lang#117460 and rust-lang#126443.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: