Skip to content

Rollup of 8 pull requests#157279

Closed
jhpratt wants to merge 71 commits into
rust-lang:mainfrom
jhpratt:rollup-KEQkzRP
Closed

Rollup of 8 pull requests#157279
jhpratt wants to merge 71 commits into
rust-lang:mainfrom
jhpratt:rollup-KEQkzRP

Conversation

@jhpratt
Copy link
Copy Markdown
Member

@jhpratt jhpratt commented Jun 2, 2026

Successful merges:

r? @ghost

Create a similar rollup

Jules-Bertholet and others added 30 commits May 26, 2026 21:59
With an unoptimized, non-`const` implementation
for now.
…tor-box

enforce noalias on custom allocator Box by default
windows shims: avoid representing directories as paths
Shim the LoongArch CRC intrinsics
This updates the rust-version file to 8f02e85.
flock tests: cover the case of asking for both locks on the same file handle
This updates the rust-version file to 6368fd5.
200ms is an eternity and slows down test execution
Signed-off-by: acegikmoo <rubairakib11@gmail.com>
jhpratt added 4 commits June 1, 2026 22:08
Move feature gating to the new attr parsing infrastructure

Does the feature gate checking for attributes during attribute parsing, rather than during expansion.
This is one more step towards removing `BUILTIN_ATTRIBUTES`.

My goal was to keep the diagnostics mostly the same during this PR, and do some improvements and cleanups later, to reduce the diff. Some diagnostics still had minor changes to keep the implementation simpler.

This PR was fully manually written, I triple-checked that I didn't accidentally stabilize or change the gate of an attribute, but I'm terrified of a mistake still slipping through so please check this again.

r? @mejrs @jdonszelmann
cc @nnethercote @scrabsha @Bryntet
tests: adapt for LLVM codegen change

Adapts for llvm/llvm-project@7966cbb.

@rustbot label: +llvm-main
r? @durin42
Update books

## rust-lang/reference

10 commits in ad35aca481751a06afeb23820a672b0f3b11a476..01b0ee707f4571e803c8b2c471d8335a448f5d60
2026-05-31 18:52:24 UTC to 2026-05-20 14:06:08 UTC

- Update `naked` to use the attribute template (rust-lang/reference#1908)
- Update link_name for updated restrictions (rust-lang/reference#2268)
- parens are not optional in guard chains that have || operators (rust-lang/reference#2224)
- Document `target_has_atomic_primitive_alignment` (rust-lang/reference#2273)
- Fix grammar rules pertaining to obsolete range patterns (rust-lang/reference#2259)
- Unwrap a few remaining chapters (rust-lang/reference#2276)
- Guarantee alignment of `repr(C)` structs with no fields (rust-lang/reference#2264)
- avoid using 'place projection' for only some of the projections (rust-lang/reference#2253)
- add xtask doctest (rust-lang/reference#2255)
- Grammar: Don't allow inner attrs in certain block expressions (rust-lang/reference#2269)

## rust-lang/rust-by-example

7 commits in 898f0ac1479223d332309e0fce88d44b39927d28..d3117f6c873acbbf331c1d510371d061dfcc975c
2026-06-01 14:19:19 UTC to 2026-05-25 13:19:23 UTC

- Fix Spanish translation typos in es.po (rust-lang/rust-by-example#2018)
- Match comment module & file order (rust-lang/rust-by-example#2009)
- Fix Spanish translation typos in es.po (rust-lang/rust-by-example#2011)
- Update expression.md: renamed variable x_cube to x_cubed (rust-lang/rust-by-example#2012)
- Update comment.md - Fixed comments related to asterisk column (rust-lang/rust-by-example#2013)
- Minor typo in meta.md (rust-lang/rust-by-example#2016)
- Fix erroroneous implication (rust-lang/rust-by-example#2017)
…=LawnGnome

triagebot.toml: add LawnGnome to libs reviewers

r? me
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Jun 2, 2026
@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-CI Area: Our Github Actions CI A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 2, 2026
@jhpratt
Copy link
Copy Markdown
Member Author

jhpratt commented Jun 2, 2026

@bors r+ rollup=never p=5

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Jun 2, 2026

📌 Commit 698ca16 has been approved by jhpratt

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 2, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Jun 2, 2026
Rollup of 8 pull requests

Successful merges:

 - #157240 (Enable Enzyme for aarch64-apple-darwin)
 - #157276 (miri subtree update)
 - #154742 (Add APIs for case folding to the standard library)
 - #157130 (Use a `ArrayVec` in `CastTarget`)
 - #157195 (Move feature gating to the new attr parsing infrastructure)
 - #157256 (tests: adapt for LLVM codegen change)
 - #157265 (Update books)
 - #157277 (triagebot.toml: add LawnGnome to libs reviewers)
@rust-log-analyzer
Copy link
Copy Markdown
Collaborator

The job x86_64-gnu-llvm-21-3 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)

---- [codegen] tests/codegen-llvm/issues/issue-123712-str-to-lower-autovectorization.rs stdout ----
------rustc stdout------------------------------

------rustc stderr------------------------------
error[E0308]: mismatched types
##[error]  --> /checkout/tests/codegen-llvm/issues/issue-123712-str-to-lower-autovectorization.rs:23:49
   |
23 |     unsafe { alloc::str::convert_while_ascii(s, u8::to_ascii_lowercase) }
   |              -------------------------------    ^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found fn item
   |              |
   |              arguments to this function are incorrect
   |
   = note: expected fn pointer `fn(core::ascii::Char) -> core::ascii::Char`
                 found fn item `for<'a> fn(&'a u8) -> u8 {core::num::<impl u8>::to_ascii_lowercase}`
note: function defined here
  --> /rustc/FAKE_PREFIX/library/alloc/src/str.rs:908:7

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

------------------------------------------

error: compilation failed!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1/bin/rustc" "/checkout/tests/codegen-llvm/issues/issue-123712-str-to-lower-autovectorization.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage1" "--target=x86_64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "-O" "-Cdebug-assertions=no" "-Zcodegen-source-order" "--emit" "llvm-ir" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen-llvm/issues/issue-123712-str-to-lower-autovectorization/issue-123712-str-to-lower-autovectorization.ll" "-A" "internal_features" "-A" "incomplete_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-C" "opt-level=3"
stdout: none
--- stderr -------------------------------
error[E0308]: mismatched types
##[error]  --> /checkout/tests/codegen-llvm/issues/issue-123712-str-to-lower-autovectorization.rs:23:49
   |
23 |     unsafe { alloc::str::convert_while_ascii(s, u8::to_ascii_lowercase) }
   |              -------------------------------    ^^^^^^^^^^^^^^^^^^^^^^ expected fn pointer, found fn item
   |              |
   |              arguments to this function are incorrect
   |
   = note: expected fn pointer `fn(core::ascii::Char) -> core::ascii::Char`
                 found fn item `for<'a> fn(&'a u8) -> u8 {core::num::<impl u8>::to_ascii_lowercase}`
note: function defined here
  --> /rustc/FAKE_PREFIX/library/alloc/src/str.rs:908:7

error: aborting due to 1 previous error

@rust-bors rust-bors Bot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 2, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Jun 2, 2026

💔 Test for 76d4faf failed: CI. Failed job:

@jhpratt jhpratt closed this Jun 2, 2026
@rust-bors rust-bors Bot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jun 2, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 2, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Jun 2, 2026

PR #154742, which is a member of this rollup, was unapproved.

@jhpratt jhpratt deleted the rollup-KEQkzRP branch June 2, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-CI Area: Our Github Actions CI A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-meta Area: Issues & PRs about the rust-lang/rust repository itself A-testsuite Area: The testsuite used to check the correctness of rustc rollup A PR which is a rollup S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. 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.