Skip to content

Conversation

RalfJung
Copy link
Member

Merge ref '28d0a4a205f9' from rust-lang/rust

Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 28d0a4a205f9e511ad2f51ee79a4aa19a704a455
Filtered ref: 310e497
Upstream diff: rust-lang/rust@235a4c0...28d0a4a

This merge was created using https://github.com/rust-lang/josh-sync.

Diggsey and others added 4 commits October 15, 2025 13:17
It's common to import dependencies from the sysroot via `extern crate`
rather than use an explicit cargo dependency, when it's necessary to use
the same dependency version as used by rustc itself. However, this is
dangerous for crates.io crates, since rustc may not pull in the
dependency on some targets, or may pull in multiple versions. In both
cases, the `extern crate` fails to resolve.

To address this, re-export all such dependencies from the appropriate
`rustc_*` crates, and use this alias from crates which would otherwise
need to use `extern crate`.
Restrict sysroot crate imports to those defined in this repo.

It's common to import dependencies from the sysroot via `extern crate` rather than use an explicit cargo dependency, when it's necessary to use the same dependency version as used by rustc itself. However, this is dangerous for crates.io crates, since rustc may not pull in the dependency on some targets, or may pull in multiple versions. In both cases, the `extern crate` fails to resolve.

To address this, re-export all such dependencies from the appropriate `rustc_*` crates, and use this alias from crates which would otherwise need to use `extern crate`.

See rust-lang/rust#143492 for an example of the kind of issue that can occur.
This updates the rust-version file to 28d0a4a205f9e511ad2f51ee79a4aa19a704a455.
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 28d0a4a205f9e511ad2f51ee79a4aa19a704a455
Filtered ref: 310e497
Upstream diff: rust-lang/rust@235a4c0...28d0a4a

This merge was created using https://github.com/rust-lang/josh-sync.
@rustbot
Copy link
Collaborator

rustbot commented Oct 15, 2025

Thank you for contributing to Miri!
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Oct 15, 2025
@RalfJung RalfJung enabled auto-merge October 15, 2025 19:20
@RalfJung RalfJung added this pull request to the merge queue Oct 15, 2025
Merged via the queue into rust-lang:master with commit 50ba3a7 Oct 15, 2025
13 checks passed
@RalfJung RalfJung deleted the rustup branch October 15, 2025 21:05
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants