Skip to content

miri subtree update - #160634

Merged
rust-bors[bot] merged 50 commits into
rust-lang:mainfrom
RalfJung:miri
Aug 8, 2026
Merged

miri subtree update#160634
rust-bors[bot] merged 50 commits into
rust-lang:mainfrom
RalfJung:miri

Conversation

@RalfJung

@RalfJung RalfJung commented Aug 6, 2026

Copy link
Copy Markdown
Member

Subtree update of miri to rust-lang/miri@13801c6.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost

RalfJung and others added 30 commits August 3, 2026 12:22
don't force intrinsic results into memory
This updates the rust-version file to 7218ebe.
Move command-result printing into a helper and keep CLI loop control at the call site.
Consume Priroda's --dap flag before handing arguments to rustc_driver::run_compiler, then dispatch the freshly-created PrirodaContext to either the existing CLI loop or a new DAP loop stub.
Add FirstUserSourceLocation ResumeMode variant that stops when the
interpreter reaches a user-relevant frame with a source location.
This gives the DAP frontend an entry-stop primitive that skips
Miri-internal and std frames.
Wire `next` and `stepIn` DAP requests to Priroda's existing source-line
step.  Both commands use the same `handle_step` handler for now; true
step-over vs step-in semantics are deferred.

Add `stopped_reason` to map `StepResult` variants to DAP
`StoppedEventReason` so the editor can distinguish a manual step from a
breakpoint hit.  Add a `handle_disconnect` handler that sends the
`terminated` event and exits the session cleanly.

Document the `SourceLocation` span-storage rationale and refine the
`SourceLine` resume-mode comment to be clearer about the "no source
location → first mapped location" semantics.
When the session receives an unsupported DAP request, return
`DispatchOutcome::Continue` instead of `Exit` so the debug adapter keeps
running after sending the error response.  Remove the `eprintln!` side
channel from `handle_unsupported_request` since the framed DAP error
response is the single authoritative error-reporting path.

Include the command name in the error message string so the DAP client
sees which request was rejected.
Replace `unreachable!()` with `bug!(...)` at the four dispatch-guaranteed
invariant sites so they produce a meaningful message when the guard fails
instead of a bare panic.  Also switch the DAP error print to Debug format
so transport errors include their chain.
Call `span.source_callsite()` in `resolve_current_location` so
breakpoints and source reporting use the user-visible macro call site
instead of the expanded macro body for lines generated by `println!`,
`assert_eq!`, and similar macros.
Add the `continue` command handler, reusing the existing source-line
stepping and breakpoint infrastructure.  The `handle_continue` method
follows the same `ExecutionOutcome` dispatch pattern as `handle_step`.

Include `Command::Continue` in `require_thread_id` validation so the
request passes the thread-id guard, and widen the fallback from
`unreachable!()` to `true` so any future request with a thread-id field
passes validation rather than panicking.
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 7, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 7, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 7, 2026
Rollup of 14 pull requests

Successful merges:

 - #150885 (Revive L4Re target)
 - #159643 (Add support for splatted function pointers)
 - #160433 (delegation: add support for wrapping of the return value with `From::from`)
 - #160530 (refactor handling of target features in Session)
 - #160606 (bootstrap: Store and use an explicit CheckKind in `check::Rustc`)
 - #160628 (fix ICE in `suggest_add_reference_to_arg` for non-callable items)
 - #160634 (miri subtree update)
 - #158904 (Fix FutureDropPoll shim for by-move async closures)
 - #160335 (dlopen offload)
 - #160445 (codegen: classify localized MSVC linker progress as linker_info)
 - #160504 (cleanup borrowck, improve c-variadic handling)
 - #160587 (Add regression test for associated type outlives bound at call site)
 - #160625 (platform-support/netbsd.md: No longer mention 8.x, due to EoL.)
 - #160636 (derive(Diagnostic): link to proper docs)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 7, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 7, 2026
…uwer

Rollup of 21 pull requests

Successful merges:

 - #159784 (Hint that memchr returns an in-bounds index)
 - #150885 (Revive L4Re target)
 - #159643 (Add support for splatted function pointers)
 - #160433 (delegation: add support for wrapping of the return value with `From::from`)
 - #160530 (refactor handling of target features in Session)
 - #160606 (bootstrap: Store and use an explicit CheckKind in `check::Rustc`)
 - #160628 (fix ICE in `suggest_add_reference_to_arg` for non-callable items)
 - #160634 (miri subtree update)
 - #157641 (Do not promote extern statics)
 - #158904 (Fix FutureDropPoll shim for by-move async closures)
 - #160103 (Add regression test for GAT bound mismatched type error)
 - #160335 (dlopen offload)
 - #160445 (codegen: classify localized MSVC linker progress as linker_info)
 - #160499 (rustc_resolve: move diagnostic attribute linting to attr parsing)
 - #160504 (cleanup borrowck, improve c-variadic handling)
 - #160577 (expand: Feature gate AST-based attribute macros on expressions and statements)
 - #160587 (Add regression test for associated type outlives bound at call site)
 - #160625 (platform-support/netbsd.md: No longer mention 8.x, due to EoL.)
 - #160636 (derive(Diagnostic): link to proper docs)
 - #160644 (Clean up some manual debug impls)
 - #160649 (move naked function ui tests)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Aug 7, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 7, 2026
…uwer

Rollup of 20 pull requests

Successful merges:

 - #159784 (Hint that memchr returns an in-bounds index)
 - #150885 (Revive L4Re target)
 - #159643 (Add support for splatted function pointers)
 - #160433 (delegation: add support for wrapping of the return value with `From::from`)
 - #160530 (refactor handling of target features in Session)
 - #160606 (bootstrap: Store and use an explicit CheckKind in `check::Rustc`)
 - #160628 (fix ICE in `suggest_add_reference_to_arg` for non-callable items)
 - #160634 (miri subtree update)
 - #157641 (Do not promote extern statics)
 - #158904 (Fix FutureDropPoll shim for by-move async closures)
 - #160103 (Add regression test for GAT bound mismatched type error)
 - #160335 (dlopen offload)
 - #160445 (codegen: classify localized MSVC linker progress as linker_info)
 - #160499 (rustc_resolve: move diagnostic attribute linting to attr parsing)
 - #160504 (cleanup borrowck, improve c-variadic handling)
 - #160577 (expand: Feature gate AST-based attribute macros on expressions and statements)
 - #160587 (Add regression test for associated type outlives bound at call site)
 - #160625 (platform-support/netbsd.md: No longer mention 8.x, due to EoL.)
 - #160636 (derive(Diagnostic): link to proper docs)
 - #160644 (Clean up some manual debug impls)
jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 7, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Contributor

@bors try jobs=aarch64-apple-2

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Aug 7, 2026
miri subtree update


try-job: aarch64-apple-2
@JonathanBrouwer

Copy link
Copy Markdown
Contributor

@bors try cancel
@bors try jobs=aarch64-apple-macos-26-2

@rust-bors

rust-bors Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Try build cancelled. Cancelled workflows:

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Aug 7, 2026
miri subtree update


try-job: aarch64-apple-macos-26-2
@rust-bors

rust-bors Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: b241a12 (b241a1297c31c420e9f19b1c93464198ddade9a3)
Base parent: 1a98b1e (1a98b1e135b254f209c67d447b6d8bcd56a859e0)

jhpratt added a commit to jhpratt/rust that referenced this pull request Aug 8, 2026
rust-bors Bot pushed a commit that referenced this pull request Aug 8, 2026
Rollup of 5 pull requests

Successful merges:

 - #160634 (miri subtree update)
 - #160642 (mir: prohibit projection into scalable vec)
 - #160303 (rustc_parse: A few cleanups to expression parsing next to attributes)
 - #160429 (tidy: Update Python version requirements to 3.10)
 - #160543 (Default `RawOsError` to `i16` for 16-bit targets)
rust-bors Bot pushed a commit that referenced this pull request Aug 8, 2026
Rollup of 5 pull requests

Successful merges:

 - #160634 (miri subtree update)
 - #159017 (Don't target synthetic APIT params in lifetime suggestion)
 - #160303 (rustc_parse: A few cleanups to expression parsing next to attributes)
 - #160429 (tidy: Update Python version requirements to 3.10)
 - #160543 (Default `RawOsError` to `i16` for 16-bit targets)
@rust-bors
rust-bors Bot merged commit 9a1301e into rust-lang:main Aug 8, 2026
14 checks passed
@rustbot rustbot added this to the 1.99.0 milestone Aug 8, 2026
rust-timer added a commit that referenced this pull request Aug 8, 2026
Rollup merge of #160634 - RalfJung:miri, r=RalfJung

miri subtree update

Subtree update of `miri` to rust-lang/miri@13801c6.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost
@RalfJung
RalfJung deleted the miri branch August 8, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants