-
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
ICE: inlinable function call in a function with debug info must have a !dbg location #35566
Comments
I investigated this a bit, but without much success. |
@petrochenkov The problem is this line, called from MIR trans. The fix is to move this to the call and use the Sorry for not looking into this sooner, #35764 was a priority - we can to start getting rid of all |
Sadly, still not fixed yet. Ran into this when wanting to debug strange behaviour on Windows, where printf based debugging actually changed behaviour. |
@petrochenkov 's workaround of tagging with |
It fell through the cracks again, I ended up working solely on higher-up parts of the compiler. |
Cleanup old trans This is a cleanup of old trans, with the following main points: - Remove the `build.rs` API (prefer using `Builder` directly, which is now passed where needed through `BlockAndBuilder`). - Remove `Block` (inlining it into `BlockAndBuilder`) - Remove `Callee::call`, primarily through inlining and simplification of code. - Thinned `FunctionContext`: - `mir`, `debug_scopes`, `scopes`, and `fn_ty` are moved to `MirContext`. - `param_env` is moved to `SharedCrateContext` and renamed to `empty_param_env`. - `llretslotptr` is removed, replaced with more careful management of the return values in calls. - `landingpad_alloca` is inlined into cleanup. - `param_substs` are moved to `MirContext`. - `span` is removed, it was never set to anything but `None`. - `block_arena` and `lpad_arena` are removed, since neither was necessary (landing pads and block are quite small, and neither needs arena allocation). - Fixed `drop_in_place` not running other destructors in the same function. Fixes #35566 (thanks to @est31 for confirming).
I just tried building master and encountered this issue. 😕 |
@segevfiner It's because the beta doesn't have the fix. Try building stage1 libstd without debuginfo then use |
I just hit on this with my tree on 0896826 while building I guess I should use windows only for gaming. |
Happens at stage 1 during rustc bootstrap with enabled debug info and MIR on Windows/GNU.
Result:
This looks very similar to #35141
cc @eddyb @nagisa
The text was updated successfully, but these errors were encountered: