-
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
toolchain nightly 12-06-2024 introduces crash on compile of crate imgui #134345
Comments
Does this still crash on the latest nightly? The relevant code has been changed recently. |
Unluckily yes,
Here is backtrace:
|
cc @Urgau I'm pretty sure the root cause is this line: rust/compiler/rustc_lint/src/types.rs Line 490 in d185062
Doing formatting eagerly like this anywhere in the compiler is usually a time bomb, because if formatting happens then is ignored, there's a mechanism you can see in the backtraces to ensure that the compiler crashes. |
Rollup merge of rust-lang#134357 - Urgau:fn-ptr-134345, r=compiler-errors Fix `trimmed_def_paths` ICE in the function ptr comparison lint This PR fixes an ICE with `trimmed_def_paths` ICE in the function ptr comparison lint, specifically when pretty-printing user types but then not using the resulting pretty-printing. Fixes rust-lang#134345 r? `@saethlin`
Confirmed. Issue is gone! |
Code
This happens when compiling imgui crate. I have no minimal sample, really sorry about that. Happens in
nightly-2024-12-06-x86_64-unknown-linux-gnu
, but not innightly-2024-12-05-x86_64-unknown-linux-gnu
. Cross-compiling to windows viax86_64-pc-windows-msvc
inrelease
mode.Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: