-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
debug-assertion ICE: assertion failed: !value.has_escaping_bound_vars()
#74713
Comments
https://godbolt.org/z/8ns3Kq |
This is has a similar cause to #56445. |
Assigning |
Since min_const_generics stabilisation this now requires #![feature(const_generics)]
fn bug<'a>()
where
[(); {
let _: &'a ();
}]: ,
{
}
fn main() {} |
Seems it has been fixed (finally) in the latest nightly, marking as |
Triage: This still triggers ICE with a debug assertion, see #83746 for details. |
assertion failed: !value.has_escaping_bound_vars()
Is there a known workaround to this ? I'm getting this error with the following: #![feature(const_generics, const_evaluatable_checked)]
pub trait Trait {
const N: usize;
}
impl<'a> Trait for &'a mut i32 {}
pub fn f<'a>() where [(); <&'a mut i32 as Trait>::N]: {} |
I think I have found a duplicate. Codefn test_ref(x: &u32) -> std::future::Future<Output = u32> + '_ {}
fn u() {
test_ref & u
} Meta
Error output
Backtrace
|
from what I can tell this now works even with debug assertions? marking as needs-test. |
…13, r=Dylan-DPC Add regression test for rust-lang#74713 closes rust-lang#74713
…13, r=Dylan-DPC Add regression test for rust-lang#74713 closes rust-lang#74713
…laumeGomez Rollup of 10 pull requests Successful merges: - rust-lang#98789 (rustdoc-json-types: Clean up derives.) - rust-lang#98848 (Build the Clippy book as part of x.py doc) - rust-lang#99020 (check non_exhaustive attr and private fields for transparent types) - rust-lang#99132 (Add some autolabels for A-bootstrap and T-infra) - rust-lang#99148 (Clarify that [iu]size bounds were only defined for the target arch) - rust-lang#99152 (Use CSS variables to handle theming (part 2)) - rust-lang#99168 (Add regression test for rust-lang#74713) - rust-lang#99176 (:arrow_up: rust-analyzer) - rust-lang#99183 (Mention rust-analyzer maintainers when `proc_macro` bridge is changed) - rust-lang#99185 (llvm-wrapper: adapt for LLVM API change) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Code
Meta
rustc --version --verbose
:Error output
New backtrace: https://gist.github.com/JohnTitor/8b492f5d69b0b704d618c11da81c05ff
Backtrace
This probably is the same as found in #70292, except this hits on stable :)
The text was updated successfully, but these errors were encountered: