Skip to content

remove some of miri's public re-exports - #5412

Merged
RalfJung merged 1 commit into
rust-lang:masterfrom
mejrs:reexports
Oct 14, 2026
Merged

RalfJung merged 1 commit into
rust-lang:masterfrom
mejrs:reexports

Conversation

@mejrs

@mejrs mejrs commented Oct 12, 2026

Copy link
Copy Markdown
Member

Because of the way the docs for rustc, miri, clippy, rustdoc, etc are smooshed together, these re-exports used to override the original definitions in search results, see for example span_bug:

image

This has been mildly annoying me for some time, so i figured I'd just fix up these imports.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Oct 12, 2026
@mejrs
mejrs force-pushed the reexports branch 2 times, most recently from 9433168 to 4d90593 Compare October 12, 2026 12:03
Comment thread src/shims/unwind.rs Outdated
//! metadata we remembered when pushing said frame.

use rustc_abi::ExternAbi;
use rustc_log::tracing::trace;

@RalfJung RalfJung Oct 12, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with having fewer things pub-exported in the crate root, but I am not okay with having to import the trace macro in every single file. That's just useless boilerplate IMO.

View changes since the review

Comment thread src/lib.rs
@RalfJung
RalfJung added this pull request to the merge queue Oct 14, 2026
Merged via the queue into rust-lang:master with commit f468d6a Oct 14, 2026
16 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Oct 14, 2026
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.

3 participants