Skip to content

Remove windows time workaround - #5008

Merged
RalfJung merged 4 commits into
rust-lang:masterfrom
RalfJung:remove-windows-time-workaround
May 7, 2026
Merged

Remove windows time workaround#5008
RalfJung merged 4 commits into
rust-lang:masterfrom
RalfJung:remove-windows-time-workaround

Conversation

@RalfJung

@RalfJung RalfJung commented May 7, 2026

Copy link
Copy Markdown
Member

It should not be needed any more now that rust-lang/rust#156177 has landed.

bors and others added 4 commits May 7, 2026 05:38
…nszelmann

Lint unused pub items in binary crates



~~This PR adds a new unstable flag -Ztreat-pub-as-pub-crate as [@Kobzol](https://github.com/Kobzol) suggested.~~
~~When compiling binary crates with this flag, the seed worklist will only contain the entry fn and won't contain other reachable items. Then we can do the dead code analysis for pub items just like they are pub(crate).~~

Related zulip thread [#general > pub/pub(crate) within a binary is a footgun](https://rust-lang.zulipchat.com/#narrow/channel/122651-general/topic/pub.2Fpub.28crate.29.20within.20a.20binary.20is.20a.20footgun/with/558931034).

---

Updated:

Adds a new lint `unused_pub_items_in_binary` (crate-level, default allow for now) instead of the previous unstable flag to lint unused `pub` items for binary crates.

See more details of implementation in rust-lang/rust#149509 (comment).

This lint is allowed by default, but I believe this has been better than the unstable flag. Making it warn-by-default will lead to a lot of noise for this PR (like bless many tests). So I'd like to make it warn-by-default in a separate PR in the future.
This updates the rust-version file to 32bd660612bf1c61bdf290a3ec643c8538b8357d.
@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label May 7, 2026
@rustbot

rustbot commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Thank you for contributing to Miri! A reviewer will take a look at your PR, typically within a week or two.
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 commented May 7, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

  • The following commits have merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged.

    You can start a rebase with the following commands:

    $ # rebase
    $ git pull --rebase https://github.com/rust-lang/miri.git master
    $ git push --force-with-lease
    

@RalfJung
RalfJung enabled auto-merge May 7, 2026 16:22
@RalfJung
RalfJung added this pull request to the merge queue May 7, 2026
Merged via the queue into rust-lang:master with commit a3517b4 May 7, 2026
13 checks passed
@RalfJung
RalfJung deleted the remove-windows-time-workaround branch May 7, 2026 17:21
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label May 7, 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