Skip to content

interpret: expose generate_stacktrace without full InterpCx - #101985

Merged
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:generate_stacktrace
Sep 20, 2022
Merged

interpret: expose generate_stacktrace without full InterpCx#101985
bors merged 1 commit into
rust-lang:masterfrom
RalfJung:generate_stacktrace

Conversation

@RalfJung

Copy link
Copy Markdown
Member

In Miri we sometimes want to emit diagnostics without having a full &InterpCx available. To avoid duplicating code, this adds a way to get a stacktrace from an arbitrary slice of interpreter frames, that Miri can use with access to just a thread manager.

@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 18, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nagisa

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 18, 2022
@RalfJung

Copy link
Copy Markdown
MemberAuthor

r? @oli-obk

@rust-highfiverust-highfive assigned oli-obk and unassigned nagisaSep 18, 2022
@rust-log-analyzer

This comment has been minimized.

@oli-obk

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Sep 19, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 9fa3171 has been approved by oli-obk

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 19, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 20, 2022
…iaskrgr
Rollup of 11 pull requests
Successful merges:
- rust-lang#101389 (Tone down explanation on RefCell::get_mut)
- rust-lang#101798 (Make `from_waker`, `waker` and `from_raw` unstably `const`)
- rust-lang#101881 (Remove an unused struct field `late_bound`)
- rust-lang#101904 (Add help for invalid inline argument)
- rust-lang#101966 (Add unit test for identifier Unicode emoji diagnostics)
- rust-lang#101979 (Update release notes for 1.64)
- rust-lang#101985 (interpret: expose generate_stacktrace without full InterpCx)
- rust-lang#102004 (Try to clarify what's new in 1.64.0 ffi types)
- rust-lang#102005 (rustdoc: remove unused CSS `td.summary-column`)
- rust-lang#102017 (Add all submodules to the list of directories tidy skips)
- rust-lang#102019 (Remove backed off PRs from relnotes)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 8c0f8a2 into rust-lang:masterSep 20, 2022
@rustbotrustbot added this to the 1.66.0 milestone Sep 20, 2022
bors added a commit to rust-lang/miri that referenced this pull request Sep 20, 2022
avoid thread-local var indirection for non-halting diagnostics
This hack used to be necessary because Stacked Borrows did not have access to enough parts of the machine. But that got fixed a while ago, so now we can just emit diagnostics directly, which is a lot more reliable.
Needs rust-lang/rust#101985Fixes#2538
@RalfJung
RalfJung deleted the generate_stacktrace branch September 20, 2022 19:35
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@RalfJung@rustbot@rust-highfive@rust-log-analyzer@oli-obk@bors@nagisa