Skip to content

Conversation

@JonathanBrouwer
Copy link
Contributor

@JonathanBrouwer JonathanBrouwer commented Dec 18, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

GrigorenkoPV and others added 15 commits November 11, 2025 23:08
This synchronizes the list with the current state of `sysctl` on macOS “Tahoe” 26.2.


r? @Amanieu
Co-authored-by: SATVIKsynopsis <futureiitianisme@gmail.com>
…nieu

Expand `str_as_str` to more types

Tracking issue: rust-lang#130366
ACP: rust-lang/libs-team#643

This PR expands `str_from_str` feature and adds analogous methods to more types. Namely:
- `&CStr`
- `&[T]`, `&mut [T]`
- `&OsStr`
- `&Path`
- `&ByteStr`, `&mut ByteStr` (tracking issue:  rust-lang#134915) (technically was not part of ACP)
… r=wesleywiser

Set -Cpanic=abort in windows-msvc stack protector tests

I ran into a test failure with the 32-bit windows test on rust-lang#117192, one of the tests has been incorrectly passing (until my change!) because it is picking up the stack protector from another function. I've tried to prevent that happening again by adding CHECK-DAGs for the start and end of each function.

I've also done my best to correct the comments, some were based on the fact that we used to run these tests with unwinding panics, but LLVM doesn't add protectors to function with SEH funclets so it's must more straightforward for these tests to use `-Cpanic=abort`.
std_detect: AArch64 Darwin: expose SME F16F16 and B16B16 features

This synchronizes the list with the current state of `sysctl` on macOS “Tahoe” 26.2.

r? `@Amanieu`
…ivooeo

tests/run-make-cargo/same-crate-name-and-macro-name: New regression test

Closes rust-lang#71259 which just **E-needs-test**. See rust-lang#71259 (comment) for a good description of what we should test (which we do in this PR).

The project we add fails with an old nightly without the fix:

```console
$ cargo +nightly-2020-03-10 run
   Compiling consumer v0.1.0 (/home/martin/src/rust-same-crate-same-macro/tests/run-make-cargo/same-crate-name-and-macro-name/consumer)
    Finished dev [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/consumer`
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `"version 1"`,
 right: `"version 2"`', src/main.rs:6:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

and passes with a recent toolchain:

```console
$ cargo run
warning: /home/martin/src/rust-same-crate-same-macro/tests/run-make-cargo/same-crate-name-and-macro-name/consumer/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
warning: /home/martin/src/rust-same-crate-same-macro/tests/run-make-cargo/same-crate-name-and-macro-name/mylib_v1/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
warning: /home/martin/src/rust-same-crate-same-macro/tests/run-make-cargo/same-crate-name-and-macro-name/mylib_v2/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024
   Compiling mylib v2.0.0 (/home/martin/src/rust-same-crate-same-macro/tests/run-make-cargo/same-crate-name-and-macro-name/mylib_v2)
   Compiling mylib v1.0.0 (/home/martin/src/rust-same-crate-same-macro/tests/run-make-cargo/same-crate-name-and-macro-name/mylib_v1)
   Compiling consumer v0.1.0 (/home/martin/src/rust-same-crate-same-macro/tests/run-make-cargo/same-crate-name-and-macro-name/consumer)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/consumer`
```

in other words, the test tests what it should and will catch regressions.
Fixed ICE for EII with multiple defaults due to duplicate definition in nameres

r? `@jieyouxu` (since you looked at the other one)

Fixes rust-lang#149982

Previously a [fix was proposed](rust-lang#149985) by `@SATVIKsynopsis` which I marked as co-author on the first commit for the test they contributed. I'm closing this previous PR.

Duplicate definitions of EII defaults shouldn't be possible. I want to still panic on them, since I want to know when other bugs exist. However, in this case the duplicate was caused by something more subtle: both eiis have the same name, and as such a "duplicate definition" error is given. However, the compiler gracefully continues compiling despite that, assuming only one of the two EIIs is actually defined.

Both defaults then name resolve, and find the same single remaining EII, and both register themselves to be its default, breaking the single-default assumption.

The solution: I added a span-delayed-bug, to make sure we only panic if we hadn't previously had this duplicate definition name resolution error.

Thanks to `@SATVIKsynopsis` for their attempt. Adding a diagnostic here could make some sense, but nonetheless I think this is the better solution here <3
Also thanks to `@yaahc` for debugging help, she made me understand the name resolution of the situation so much better and is just lovely in general :3

The last commit is something I tried during debugging, which felt like a relevant test to add (one where both eiis also have the same function name)
@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs 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-libs Relevant to the library team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Dec 18, 2025
@JonathanBrouwer
Copy link
Contributor Author

@bors r+ rollup=never p=5

@bors
Copy link
Collaborator

bors commented Dec 18, 2025

📌 Commit 118c181 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@bors bors 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 Dec 18, 2025
@bors
Copy link
Collaborator

bors commented Dec 18, 2025

⌛ Testing commit 118c181 with merge 1d0da46...

bors added a commit that referenced this pull request Dec 18, 2025
…uwer

Rollup of 5 pull requests

Successful merges:

 - #145933 (Expand `str_as_str` to more types)
 - #148849 (Set -Cpanic=abort in windows-msvc stack protector tests)
 - #150048 (std_detect: AArch64 Darwin: expose SME F16F16 and B16B16 features)
 - #150083 (tests/run-make-cargo/same-crate-name-and-macro-name: New regression test)
 - #150102 (Fixed ICE for EII with multiple defaults due to duplicate definition in nameres)

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-mingw failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[112/132] Building CXX object MinGW/CMakeFiles/lldMinGW.dir/Driver.cpp.obj
[113/132] Building CXX object MachO/CMakeFiles/lldMachO.dir/Writer.cpp.obj
[114/132] Linking CXX static library lib\liblldMinGW.a
[115/132] Linking CXX static library lib\liblldMachO.a
FAILED: lib/liblldMachO.a 
C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E rm -f lib\liblldMachO.a && D:\a\rust\rust\mingw64\bin\ar.exe qc lib\liblldMachO.a  MachO/CMakeFiles/lldMachO.dir/Arch/ARM64.cpp.obj MachO/CMakeFiles/lldMachO.dir/Arch/ARM64Common.cpp.obj MachO/CMakeFiles/lldMachO.dir/Arch/ARM64_32.cpp.obj MachO/CMakeFiles/lldMachO.dir/Arch/X86_64.cpp.obj MachO/CMakeFiles/lldMachO.dir/ConcatOutputSection.cpp.obj MachO/CMakeFiles/lldMachO.dir/Driver.cpp.obj MachO/CMakeFiles/lldMachO.dir/DriverUtils.cpp.obj MachO/CMakeFiles/lldMachO.dir/Dwarf.cpp.obj MachO/CMakeFiles/lldMachO.dir/EhFrame.cpp.obj MachO/CMakeFiles/lldMachO.dir/ExportTrie.cpp.obj MachO/CMakeFiles/lldMachO.dir/ICF.cpp.obj MachO/CMakeFiles/lldMachO.dir/InputFiles.cpp.obj MachO/CMakeFiles/lldMachO.dir/InputSection.cpp.obj MachO/CMakeFiles/lldMachO.dir/LTO.cpp.obj MachO/CMakeFiles/lldMachO.dir/MapFile.cpp.obj MachO/CMakeFiles/lldMachO.dir/MarkLive.cpp.obj MachO/CMakeFiles/lldMachO.dir/ObjC.cpp.obj MachO/CMakeFiles/lldMachO.dir/OutputSection.cpp.obj MachO/CMakeFiles/lldMachO.dir/OutputSegment.cpp.obj MachO/CMakeFiles/lldMachO.dir/Relocations.cpp.obj MachO/CMakeFiles/lldMachO.dir/BPSectionOrderer.cpp.obj MachO/CMakeFiles/lldMachO.dir/SectionPriorities.cpp.obj MachO/CMakeFiles/lldMachO.dir/Sections.cpp.obj MachO/CMakeFiles/lldMachO.dir/SymbolTable.cpp.obj MachO/CMakeFiles/lldMachO.dir/Symbols.cpp.obj MachO/CMakeFiles/lldMachO.dir/SyntheticSections.cpp.obj MachO/CMakeFiles/lldMachO.dir/Target.cpp.obj MachO/CMakeFiles/lldMachO.dir/UnwindInfoSection.cpp.obj MachO/CMakeFiles/lldMachO.dir/Writer.cpp.obj && D:\a\rust\rust\mingw64\bin\ranlib.exe lib\liblldMachO.a && cd ."
D:\a\rust\rust\mingw64\bin\ar.exe: could not create temporary file whilst writing archive: Permission denied

[116/132] Building CXX object wasm/CMakeFiles/lldWasm.dir/Driver.cpp.obj
[117/132] Building CXX object wasm/CMakeFiles/lldWasm.dir/InputChunks.cpp.obj
[118/132] Building CXX object wasm/CMakeFiles/lldWasm.dir/InputFiles.cpp.obj
ninja: build stopped: subcommand failed.

@bors
Copy link
Collaborator

bors commented Dec 18, 2025

💔 Test failed - checks-actions

@bors bors removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Dec 18, 2025
@rust-bors
Copy link

rust-bors bot commented Dec 18, 2025

☀️ Try build successful (CI)
Build commit: 7e77565 (7e77565dc64529d79dd5bd174ea2427263b0364a, parent: ed0006a7ba2dc8fabab8ea94d6f843886311b3c7)

@Kivooeo
Copy link
Member

Kivooeo commented Dec 18, 2025

Hm, wondering about what this errors is in this PRs because it seems to me like they are no how related to the PRs itself

#150083 (comment)
#150102 (comment)

@Kivooeo
Copy link
Member

Kivooeo commented Dec 18, 2025

Yeah seems like all PRs been affected by this

Oh, I see there is a discussion by you #t-infra > Tree closed due to docker timeout :)

@JonathanBrouwer
Copy link
Contributor Author

@bors retry

@bors bors 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 Dec 18, 2025
@rust-log-analyzer
Copy link
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)

@bors
Copy link
Collaborator

bors commented Dec 18, 2025

⌛ Testing commit 118c181 with merge a632666...

bors added a commit that referenced this pull request Dec 18, 2025
…uwer

Rollup of 5 pull requests

Successful merges:

 - #145933 (Expand `str_as_str` to more types)
 - #148849 (Set -Cpanic=abort in windows-msvc stack protector tests)
 - #150048 (std_detect: AArch64 Darwin: expose SME F16F16 and B16B16 features)
 - #150083 (tests/run-make-cargo/same-crate-name-and-macro-name: New regression test)
 - #150102 (Fixed ICE for EII with multiple defaults due to duplicate definition in nameres)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Collaborator

bors commented Dec 18, 2025

💔 Test failed - checks-actions

@bors bors 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 Dec 18, 2025
@rust-log-analyzer
Copy link
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)

@rust-log-analyzer
Copy link
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)
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v5' (SHA:93cb6efe18208431cddfb8368fd83d5badbf9bfd)
##[warning]Failed to download action 'https://api.github.com/repos/actions/checkout/zipball/93cb6efe18208431cddfb8368fd83d5badbf9bfd'. Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (api.github.com:443) 
##[warning]Back off 27.191 seconds before retry.
##[warning]Failed to download action 'https://api.github.com/repos/actions/checkout/zipball/93cb6efe18208431cddfb8368fd83d5badbf9bfd'. Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (api.github.com:443) 
##[warning]Back off 27.777 seconds before retry.
##[error]A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (api.github.com:443)

@JonathanBrouwer
Copy link
Contributor Author

@bors retry

@bors bors 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 Dec 18, 2025
bors added a commit that referenced this pull request Dec 18, 2025
…uwer

Rollup of 5 pull requests

Successful merges:

 - #145933 (Expand `str_as_str` to more types)
 - #148849 (Set -Cpanic=abort in windows-msvc stack protector tests)
 - #150048 (std_detect: AArch64 Darwin: expose SME F16F16 and B16B16 features)
 - #150083 (tests/run-make-cargo/same-crate-name-and-macro-name: New regression test)
 - #150102 (Fixed ICE for EII with multiple defaults due to duplicate definition in nameres)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors
Copy link
Collaborator

bors commented Dec 18, 2025

⌛ Testing commit 118c181 with merge bbe4c6c...

@bors
Copy link
Collaborator

bors commented Dec 18, 2025

💔 Test failed - checks-actions

@bors bors 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 Dec 18, 2025
@rust-log-analyzer
Copy link
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)
c940a7bdfc53: Pushed
548a79621a42: Pushed
fbbf30848e7c: Pushed
b39e81485d7c: Pushed
Head "https://ghcr.io/v2/rust-lang/rust-ci/blobs/sha256:20749cdb9167cf28724a938bde36a744507043008424f6c9f961ed759c3199fd": dial tcp 140.82.116.33:443: i/o timeout
##[error]Process completed with exit code 1.
##[group]Run echo "disk usage:"
echo "disk usage:"
df -h
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}

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

Labels

A-run-make Area: port run-make Makefiles to rmake.rs rollup A PR which is a rollup 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-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.

10 participants