Repository navigation
Rollup of 9 pull requests - #165446
Open
Zalathar wants to merge 25 commits into
Open
Rollup of 9 pull requests#165446Zalathar wants to merge 25 commits into
Zalathar wants to merge 25 commits into
Conversation
…d.rs 0-prefixed labels are not accepted anymore with GNU as, so this is necessary to make this test pass with rustc_codegen_gcc.
It can be a bit tricky to follow these macros, but we still want to provide good diagnostics. Add tests making sure these don't change.
Because of rewrapping, this prints as:
error: This macro cannot be used on the current target.
You can prevent it from being used in other architectures by
guarding it behind a cfg(any(target_arch = "aarch64", target_arch = "arm64ec")).
Bridge newlines so it instead prints as this:
error: This macro cannot be used on the current target. You can prevent
it from being used in other architectures by guarding it behind
a `cfg(any(target_arch = "aarch64", target_arch = "arm64ec"))`.
We have a handful of `#[unstable]` gates that aren't even being used, because all that matters is the re-export in `std`. For example, the RISC-V macro appears unstable, but has actually been stable since 1.78 <https://doc.rust-lang.org/1.78.0/std/arch/macro.is_riscv_feature_detected.html>.
Rather than transmuting discriminants, use the macros to generate a list of all features that we can iterate instead. This also allows us to remove the sentinel `_last` entry.
…Arc, Rc) * alloc: Add test coverage for try_clone_from_ref_in * alloc: test cloning zero-sized values from references * alloc: format zero-sized clone test * alloctests: remove obsolete const_btree_len feature * alloctests: fix feature attribute formatting
…nGnome std: Clean up and improve errors for `is_*_feature_detected` macros This includes a handful of small changes around the internals of our feature detection macros: * Add UI tests, since this macro is pretty UI-forward but not yet covered anywhere * Remove misleading feature gates that aren't even being checked, e.g. what showed up in rust-lang#111192 (comment). * Clean up some errors and improve the comments around all of this This is done in a handful of separate commits, the messages have some more details.
…=tgross35 Remove the label starting with 0 in the test binary_asm_labels_allowed.rs 0-prefixed labels are not accepted anymore with recent GNU as, so this is necessary to make this test pass with rustc_codegen_gcc.
Fix constant-pattern equality suggestion spans in macros Addresses rust-lang#164044 The ancestor lookup brings the initializer into the pattern’s context instead of always choosing the outermost call site, because the pattern itself may belong to an inner macro expansion. r? @estebank
…ructor-call-suggestion, r=estebank Fix explicit destructor-call suggestion spans in macros Macro expansion can make suggestions for explicit destructor calls point to the wrong source location. This change maps the receiver’s span into the call’s syntax context and skips the suggestion when no suitable span can be found. Addresses the explicit destructor-call suggestion case in rust-lang#164044 r? @estebank
…in, r=nia-e [Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, Arc, Rc) Description: LLM Disclosure: I used an AI assistant for local guidance while exploring the test structure and troubleshooting compiler errors (such as handling System allocator equality checks). I wrote this PR description, ran all tests, and verified the changes myself. **Summary** I added a UI test to verify `try_clone_from_ref_in ` across **Box, Arc, and Rc** using the System allocator as part of the Allocators 1.0 test coverage work. What’s included: - Added tests/ui/allocator/try-clone-from-ref-in.rs - Tested fallible cloning from references for **&str** and **&[i32]** slices with Box, **Arc,** and **Rc** - Verified feature gate handling (#![feature(clone_from_ref)]) - Ran `./x.py test tests/ui/allocator/try-clone-from-ref-in.rs` locally and the test passed.
…ocator-docs, r=nia-e Document allocator swap in BinaryHeap::append Added comments to be more specific about swap which occurs when `self` has fewer elements than `other`. Swap also swaps allocators leading to drop of `self` dropping the allocator that originally belonged to `other` and vice versa. The docs had no mention regarding this. Felt anyone using custom allocators should have this clarified. Issue origin: [rust-lang#32526](rust-lang#32526) Implemented in: [rust-lang#32987](rust-lang#32987)
Impl read_le/read_be for f16 and f128 Implements read_le/read_be (tracked by rust-lang#156984) for f16 and f128 (tracked by rust-lang#116909)
…querykey-impl, r=adwinwhite Remove unusued query key impl We no longer use these keys in any queries, so we can yeet them. r? @adwinwhite
…, r=jieyouxu docker: bump node to v24.22.2 in shared script Context : https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/Is.20our.20infra.20affected.20by.20revoked.20certs.3F/with/633490157 Another fix related to [emudhra CA certificates](https://emudhra.we-have-a-problem.com). Follow-up of rust-lang#164676. Here we bump the node version set in the shared Docker scripts to a release that ships a security fix. - [Security fix shipped in 24.22.1](https://nodejs.org/en/blog/release/v24.22.1) - [24.22.2 ships a few non-related backports](https://nodejs.org/en/blog/release/v24.22.2) I also change the control variable to bust the Docker cache for all images, so newer builds catch this update. r? @marcoieni
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 4, 2026
Rollup of 9 pull requests Successful merges: - #165011 (std: Clean up and improve errors for `is_*_feature_detected` macros) - #164482 (Remove the label starting with 0 in the test binary_asm_labels_allowed.rs) - #165268 (Fix constant-pattern equality suggestion spans in macros) - #165318 (Fix explicit destructor-call suggestion spans in macros) - #164440 ([Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, Arc, Rc)) - #165001 (Document allocator swap in BinaryHeap::append) - #165330 (Impl read_le/read_be for f16 and f128) - #165414 (Remove unusued query key impl) - #165440 (docker: bump node to v24.22.2 in shared script)
Collaborator
|
A job failed! Check out the build log: (web) (plain enhanced) (plain) Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
💔 Test for 4d0ceb5 failed: CI. Failed job:
|
Member
Author
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 4, 2026
Rollup of 9 pull requests try-job: dist-powerpc64le-linux-musl
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 4, 2026
Rollup of 9 pull requests Successful merges: - #165011 (std: Clean up and improve errors for `is_*_feature_detected` macros) - #164482 (Remove the label starting with 0 in the test binary_asm_labels_allowed.rs) - #165268 (Fix constant-pattern equality suggestion spans in macros) - #165318 (Fix explicit destructor-call suggestion spans in macros) - #164440 ([Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, Arc, Rc)) - #165001 (Document allocator swap in BinaryHeap::append) - #165330 (Impl read_le/read_be for f16 and f128) - #165414 (Remove unusued query key impl) - #165440 (docker: bump node to v24.22.2 in shared script)
Member
|
EDIT: nevermind, I just didn't find the commit. |
Collaborator
|
The job Click to see the possible cause of the failure (guessed by this bot) |
Contributor
|
💔 Test for 5102f32 failed: CI. Failed job:
|
Member
|
@bors retry |
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 4, 2026
Rollup of 9 pull requests Successful merges: - #165011 (std: Clean up and improve errors for `is_*_feature_detected` macros) - #164482 (Remove the label starting with 0 in the test binary_asm_labels_allowed.rs) - #165268 (Fix constant-pattern equality suggestion spans in macros) - #165318 (Fix explicit destructor-call suggestion spans in macros) - #164440 ([Outreachy] alloc: Add test coverage for try_clone_from_ref_in (Box, Arc, Rc)) - #165001 (Document allocator swap in BinaryHeap::append) - #165330 (Impl read_le/read_be for f16 and f128) - #165414 (Remove unusued query key impl) - #165440 (docker: bump node to v24.22.2 in shared script)
Contributor
|
⌛ Testing commit 4f15142 with merge e119e44... Workflow: https://github.com/rust-lang/rust/actions/runs/41813767941 |
Member
|
@bors treeclosed=5 github outage |
Contributor
|
Tree closed for PRs with priority less than 5. |
This was referenced Nov 4, 2026
Open
Member
|
@bors treeopen |
Contributor
|
Tree is now open for merging. |
This branch has not been deployed
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:
is_*_feature_detectedmacros #165011 (std: Clean up and improve errors foris_*_feature_detectedmacros)r? @ghost
Create a similar rollup