-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ice: SaveContext::typeck_results
called outside of body' with -Zsave-analysis
#88536
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
Comments
I'm getting this error while compiling a crate using nightly (
I can provide the code of the crate but I'm not sure how to get a minimum example. |
I managed to get a minimum example that doesn't use any nightly features: pub struct Foo<const N: u8>;
pub type Bar = Foo<{ *(0u8..=0x45).end() }>;
fn main() {} panics when compiled with: |
Another example (the test was added in #93691 ) : struct X<const N: usize = {
let s: &'static str; s.len()
//~^ ERROR borrow of possibly-uninitialized variable
}>;
fn main() {}
|
Happens also on 1.61.0 |
Save-analysis has been removed from the compiler. |
code reduced from
./src/test/ui/symbol-names/const-generics-structural-demangling.rs
Code
Meta
rustc --version --verbose
:Error output
rustc ./src/test/ui/symbol-names/const-generics-structural-demangling.rs --emit=mir -Zsave-analysis
Backtrace
The text was updated successfully, but these errors were encountered: