Skip to content

Rollup of 5 pull requests - #166542

Closed
jhpratt wants to merge 12 commits into
rust-lang:mainfrom
jhpratt:rollup-xxKTMuV
Closed

jhpratt wants to merge 12 commits into
rust-lang:mainfrom
jhpratt:rollup-xxKTMuV

Conversation

@jhpratt

@jhpratt jhpratt commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

sorairolake and others added 12 commits November 8, 2026 12:27
add test checking that -Ctarget-feature implies cfg(target_feature)

We have lots of tests that indirectly rely on this, but I found no test directly checking the `cfg`, so let's add one.

r? @antoyo
…ctors, r=jhpratt

feat(time): add `Duration` extractors for units larger than second

- Accepted ACP: rust-lang/libs-team#923
- Tracking issue:
  - rust-lang#165784
  - rust-lang#165786

This pull request adds `Duration::as_{weeks,days,hours,mins}` methods for units larger than the second.

Based on rust-lang#120301 and rust-lang#140881, the features are divided into the `duration_extractors` feature for `Duration::as_{weeks,days}` methods and the `duration_extractors_lite` feature for `Duration::as_{hours,mins}` methods.
…ckh726

Added regression test for issue rust-lang#53156

Added regression test for issue rust-lang#53156.
Includes the issue's 3a and 3b on top of 1a and 2a in both impl and top-level versions.
Does not include 3c since it should fail to compile: the lifetime of the `&self` parameter may not outlive the lifetime `'a` required.
Also included a -Znext-solver revision as it also compiles cleanly with the next-solver so failing with it would be a regression.

Closes rust-lang#53156.
Add explanatory comment and rename alias

This PR adds explanatory comment and rename alias as requested in rust-lang#159898 (comment)

r? @Kobzol
…error-typo, r=Kivooeo

Fix typo in ConstItemInteriorMutationsDiag struct

Fixes a typo in the error message found in the `ConstItemInteriorMutationsDiag` struct (`"is a interior mutable"` -> `"is an interior mutable"`) and updates the corresponding UI test `.stderr` files.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 25, 2026
@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc A-time Area: `std::time` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler 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 Nov 25, 2026
@jhpratt

jhpratt commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 964390b 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 Nov 25, 2026
@rust-bors

This comment has been minimized.

rust-bors Bot pushed a commit that referenced this pull request Nov 25, 2026
Rollup of 5 pull requests

Successful merges:

 - #166438 (add test checking that -Ctarget-feature implies cfg(target_feature))
 - #165624 (feat(time): add `Duration` extractors for units larger than second)
 - #166231 (Added regression test for issue #53156 )
 - #166401 (Add explanatory comment and rename alias )
 - #166520 (Fix typo in ConstItemInteriorMutationsDiag struct)
@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 Nov 25, 2026
@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

💔 Test for 09afcc1 failed: CI. Failed job:

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job test-aarch64-apple-2 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[RUSTC-TIMING] yoke_derive test:false 3.030
   Compiling utf8_iter v1.0.4
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,-exported_symbols_list" "-Wl,/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/1a71ab5d3d7afb8e/out/rustcXcbpdh/list" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/1a71ab5d3d7afb8e/out/rustcXcbpdh/symbols.o" "<8 object files omitted>" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/1a71ab5d3d7afb8e/out/rustcXcbpdh/rmeta.o" "<1 object files omitted>" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/synstructure/404af8249e1798df/out/libsynstructure-404af8249e1798df.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/syn/d34fccbbc1e32a81/out/libsyn-d34fccbbc1e32a81.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/quote/6e27d6ebc0d98515/out/libquote-6e27d6ebc0d98515.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/proc-macro2/a909c23077749556/out/libproc_macro2-a909c23077749556.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/unicode-ident/a72a0f9bd204497b/out/libunicode_ident-a72a0f9bd204497b.rlib" "<sysroot>/lib/rustlib/aarch64-apple-darwin/lib/{libproc_macro-*,librustc_literal_escaper-*,libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-lSystem" "-lc" "-lm" "-arch" "arm64" "-mmacosx-version-min=11.0.0" "-o" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/1a71ab5d3d7afb8e/out/libzerofrom_derive-1a71ab5d3d7afb8e.dylib" "-Wl,-dead_strip" "-dynamiclib" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: clang: error: unable to execute command: Segmentation fault: 11
          clang: error: linker command failed due to signal (use -v to see invocation)
          Apple clang version 17.0.0 (clang-1700.6.3.2)
          Target: arm64-apple-darwin24.6.0
          Thread model: posix
          InstalledDir: /Applications/Xcode_26.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
          clang: note: diagnostic msg: 
          ********************
          
          PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
          Linker snapshot containing input(s) and associated run script(s) are located at:
          clang: note: diagnostic msg: /var/folders/9d/l02zfgrs7c16twd3wbpdmhkc0000gn/T/linker-crash-976c1a
          clang: note: diagnostic msg: 
          
          ********************
          

[RUSTC-TIMING] zerofrom_derive test:false 4.055

@jhpratt

jhpratt commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

@bors retry

@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 Nov 25, 2026
@jhpratt jhpratt closed this Nov 25, 2026
@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 25, 2026
@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved due to being closed.

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

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc A-time Area: `std::time` 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-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler 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.

8 participants