Skip to content

remove/update various cfg(miri)#156492

Open
RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:cfg-miri
Open

remove/update various cfg(miri)#156492
RalfJung wants to merge 1 commit into
rust-lang:mainfrom
RalfJung:cfg-miri

Conversation

@RalfJung
Copy link
Copy Markdown
Member

I went over all cfg(miri) in library/. Most of the things I noticed have become separate PRs; these here are the few remaining scattered little fixes in various places.

@rustbot rustbot added O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 12, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 12, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 8 candidates

@RalfJung

This comment was marked as resolved.

@rust-bors

This comment was marked as resolved.

@RalfJung
Copy link
Copy Markdown
Member Author

@bors try jobs=*gnu-aux

@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request May 12, 2026
remove/update various cfg(miri)


try-job: *gnu-aux
/// https://pubs.opengroup.org/onlinepubs/9699919799/functions/confstr.html
//
// FIXME: Support `confstr` in Miri.
#[cfg(all(target_vendor = "apple", not(miri)))]
Copy link
Copy Markdown
Member Author

@RalfJung RalfJung May 12, 2026

Choose a reason for hiding this comment

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

I think we don't actually ever hit this code path in what we currently test... and if we do, I'll add a little stub shim in Miri. That's almost always better than cfg.

View changes since the review

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 12, 2026

☀️ Try build successful (CI)
Build commit: a59d2d1 (a59d2d1274a5cfa6bed2429fb3337f92c3c2d250, parent: 29b7590130c83542a095cdf1323ed0f78eec2bb8)

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

Labels

O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants