Skip to content

Fix generating CTFE backtrace on optimized MIR#66203

Closed
Aaron1011 wants to merge 1 commit intorust-lang:masterfrom
Aaron1011:fix/miri-backtrace-opt
Closed

Fix generating CTFE backtrace on optimized MIR#66203
Aaron1011 wants to merge 1 commit intorust-lang:masterfrom
Aaron1011:fix/miri-backtrace-opt

Conversation

@Aaron1011
Copy link
Copy Markdown
Contributor

During MIR optimization, we may inline function calls acrross crates.
While we can inline the corresponding scopes into Body.source_scopes,
we cannot inline the corresponding data from source_scope_local_data,
since it references crate-local data.

This commit makes us fall back to the root lint level when generating a
CTFE backtrace, if it was not possible to find crate-local data for a
scope in source_scope_local_data.

Fixes #66137

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MIR inlining does not handle SourceScopeLocalData

8 participants