Rollup of 7 pull requests - #162790
Closed
jhpratt wants to merge 18 commits into
Closed
Rollup of 7 pull requests#162790jhpratt wants to merge 18 commits into
jhpratt wants to merge 18 commits into
Conversation
Most of them don't need to be public, but there are scenarios where thing is private on one platform but public on the other, so having a lint on all the time gets complicated. Added #![warn(unreachable_pub)] in library/std/src/lib.rs Added #[allow(unreachable_pub)] on top of std::os and std::sys specifically.
Add regression test for do_not_recommend on a single impl candidate
This reverts commit d4e6b8f. Reverted commit contains incorrect comments, does not implement all the functionality it claims to, and lacks test coverage.
As previously written, AGENTS.md prohibited my LLM from performing edits as part of a prototype that I never intended to upstream. This is explicitly permitted by the policy. Text drafted by Claude Fable 5.1 and edited by me. Change [pre-approved](https://rust-lang.zulipchat.com/#narrow/channel/606558-llm-reviews/topic/AGENTS.2Emd.20forbidding.20experimentation/near/624161741) by @jyn514
…2, r=Amanieu Remove d32 feature from 32-bit Arm targets Fixes rust-lang#159973 In rust-lang#149512 I removed `-d32` from some specs, but since LLVM enables `neon` by default for v7 targets `d32` was left enabled while it should be optional on this target. For a similar reason `-d32` was removed from some armv6 targets and has been readded. This PR adds a test to ensure this specific instance does not happen again and has been tested locally on armv7-unknown-linux-gnueabihf, armv7a-none-eabihf and arm-unknown-linux-gnueabihf. It might be a good idea in general to have a test that runs `--print cfg` and captures the set of rust target features enabled to show when PRs change them, but most of these targets are not run in Rust's CI so it's out of scope for this issue. For reference, here is the manually-expanded LLVM features and their implications - necessary as these targets rely on a feature from LLVM that Rust doesn't yet expose: ``` vfp4 -> vfp3 + fp16 + vfp4d16 + vfp4sp vfp4d16 -> vfp3d16 + fp16 + fp64 + vfp4d16sp vfp4sp -> vfp3sp + fp16 + d32 + vfp4d16sp vfp4d16sp -> vfp3d16sp + fp16 vfp3 -> vfp2 + vfp3d16 + vfp3sp vfp3d16 -> vfp2 + fp64 + vfp3d16sp vfp3sp -> vfp2 + d32 + vfp3d16sp vfp3d16sp -> vfp2sp vfp2 -> vfp2sp + fp64 vfp2sp -> fpregs ```
…tebank Filter do_not_recommend impls before handling a single candidate Fixed rust-lang#160717: a single candidate could appear in the suggestion despite `do_not_recommend`. The `if` block now executes only when there is exactly one implementation candidate and that candidate is not marked `do_not_recommend`. A new test checks both solvers; it fails without the fix and passes with it. These tests passed: - ./x test tests/ui/diagnostic_namespace/do_not_recommend --force-rerun - ./x test tests/ui/try-trait --force-rerun - ./x test tidy Used llm for code navigation.
… r=GuillaumeGomez,notriddle rustdoc: Revert "fix bare urls split text" This reverts commit d4e6b8f. Reverted commit contains incorrect comments, does not implement all the functionality it claims to, and lacks test coverage. If someone wishes to re-add the functionality, it should be done as postprocessing after the regex match, as regex is not capable of handling arbitrary nesting of matched pairs. Additionally, future PRs attempting to reinstate this should frame it as a change to a fuzzy heuristic, not as a simple "fix". r? @GuillaumeGomez
std: make a lot of items crate private 1. Added `#![warn(unreachable_pub)]` in `library/std/src/lib.rs` 2. Added `#[allow(unreachable_pub)]` on top of `std::os` and `std::sys` specifically. r? clarfonthey
…t, r=Urgau Clean up `test/rustdoc-html` folder by moving tests where appropriate <del>Gonna likely continue a bit more before assigning a reviewer.</del> CI is happy and I think it's already big enough for a first batch. r? ghost
… r=Mark-Simulacrum Fix `path_trailing_sep` methods for Windows verbatim paths Normally on Windows the path separator is either `\` or `/` but for verbatim paths it is only `\`. Currently the unstable `path_trailing_sep` methods (rust-lang#142503) do not take that into account and just use the general `is_sep_byte` method. This PR changes it to use the internal `Components::is_sep(self, b)` method that takes into account verbatim paths.
AGENTS.md: Permit local experimentation, per the online policy. As previously written, AGENTS.md prohibited my LLM from performing edits as part of a prototype that I never intended to upstream. This is explicitly permitted by the policy. Text drafted by Claude Fable 5.1 and edited by me. I ran 3 or 4 test sessions with my edits and tweaked it until it performed fairly well. It's still quite strict; it is very adamant that the user makes an explicit statement that they won't be upstreaming. Change [pre-approved](https://rust-lang.zulipchat.com/#narrow/channel/606558-llm-reviews/topic/AGENTS.2Emd.20forbidding.20experimentation/near/624161741) by @jyn514 r? @jyn514
Member
Author
|
@bors r+ p=5 |
Contributor
Contributor
|
⌛ Testing commit 7c2bb7c with merge 4b3222e... Workflow: https://github.com/rust-lang/rust/actions/runs/34928086312 |
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 15, 2026
Rollup of 7 pull requests Successful merges: - #160911 (Remove d32 feature from 32-bit Arm targets) - #162771 (Filter do_not_recommend impls before handling a single candidate) - #162779 (rustdoc: Revert "fix bare urls split text") - #161612 (std: make a lot of items crate private) - #162372 (Clean up `test/rustdoc-html` folder by moving tests where appropriate) - #162643 (Fix `path_trailing_sep` methods for Windows verbatim paths) - #162784 (AGENTS.md: Permit local experimentation, per the online policy.)
Contributor
|
This pull request was unapproved due to being closed. Auto build was cancelled due to the PR being closed. Cancelled workflows: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
test/rustdoc-htmlfolder by moving tests where appropriate #162372 (Clean uptest/rustdoc-htmlfolder by moving tests where appropriate)path_trailing_sepmethods for Windows verbatim paths #162643 (Fixpath_trailing_sepmethods for Windows verbatim paths)r? @ghost
Create a similar rollup