Skip to content

Rollup of 5 pull requests - #166551

Merged
rust-bors[bot] merged 10 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-VMgzUj0
Nov 25, 2026
Merged

rust-bors[bot] merged 10 commits into
rust-lang:mainfrom
JonathanBrouwer:rollup-VMgzUj0

Conversation

@JonathanBrouwer

@JonathanBrouwer JonathanBrouwer commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Successful merges:

r? @ghost

Create a similar rollup

itsfuad and others added 10 commits November 13, 2026 12:07
Since FreeBSD/DragonFly seemingly use `int` rather than POSIX's `id_t`
for their `getpriority`'s `who` parameter. We use `rustix` here, since
`errno` depended on it anyway.

See:

- https://pubs.opengroup.org/onlinepubs/009604599/functions/getpriority.html
- https://cgit.freebsd.org/src/tree/sys/sys/_types.h#n144
- rust-lang#166425 (comment)
…jorn3

rustc_symbol_mangling: use core's disambiguator for internal symbols

Internal symbols incorporate the rustc version in the disambiguator to avoid linker errors when linking together multiple staticlibs containing rustc code built separately.

https://github.com/rust-lang/rust/blob/1731faea0da5b4ebf881d8e53f98066c17a74711/compiler/rustc_symbol_mangling/src/lib.rs#L200-L205

However, the current logic doesn't properly avoid linker errors if you link together multiple staticlibs with the *same* rustc version but using `-Zbuild-std` and `-Cmetadata` to give the two copies of `core` different symbol names.

To fix this, have internal symbols use the same disambiguator as the `core` crate, which will avoid this linker error.
…al-ice, r=Nadrieril

Fix ICE on negated unsigned literal after orphan Neg impl

Fixes rust-lang#165689

If someone writes `impl Neg for u8`, it's rejected by the orphan check (E0117), but typeck still uses that impl, so `-1` as a `u8` type checks fine. Then MIR building turns `-1` into a negated literal and `lit_to_mir_constant` has no case for a negated unsigned int, so it hits `bug!`.

This adds an arm for that case that returns an error const through `delayed_bug`, same as the existing `LitKind::Err` arm does. So if we somehow get here without an earlier error, it still ICEs like before.

Only the literal case was broken, `-x` with a non literal `x` was already fine.

Added a UI test that ICEs without the fix.
…, r=clubby789

Fix FreeBSD `getpriority` difference

Fixes rust-lang#166425.

Since FreeBSD/DragonFly (and some BSD-likes) seemingly use `int` rather than POSIX's `id_t` for their `getpriority`'s `who` parameter. See https://cgit.freebsd.org/src/tree/sys/sys/resource.h#n189

> ```c
> __BEGIN_DECLS
> /* XXX 2nd arg to [gs]etpriority() should be an id_t */
> int	getpriority(int, int);
> ```

See also:

- https://pubs.opengroup.org/onlinepubs/009604599/functions/getpriority.html
- https://cgit.freebsd.org/src/tree/sys/sys/_types.h#n144
- rust-lang#166425 (comment)
Add regression test for rust-lang#152446

Closes rust-lang#152446

The ICE was fixed by the PR rust-lang#152001.
This adds a regression test with the original reproduction.
…r=jieyouxu

Remove llvm_enzyme frontend module, since we don't need a fallback anymore

r? jieyouxu

Noticed as well whne reviewing https://github.com/rust-lang/rust/pull/166196/changes#diff-3a91de5a40937a2785305f5d2231e835b31897c3df467d0ace07fb848bd0c604

Not sure if we ever got the smarter linter :D but we got rid of the other module a while ago, so now we don't need to wrap it in a module anymore.
@rust-bors rust-bors Bot added the rollup A PR which is a rollup label Nov 25, 2026
@rustbot rustbot added 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. labels Nov 25, 2026
@JonathanBrouwer

Copy link
Copy Markdown
Member Author

@bors r+ p=5 force

Trying commonly failed jobs
@bors try jobs=dist-various-1,dist-various-2,test-various,test-x86_64-gnu-aux,test-x86_64-msvc-1,test-aarch64-apple-1,test-aarch64-apple-2,test-x86_64-mingw-1,test-i686-msvc,test-armhf-gnu,test-x86_64-gnu-llvm-22-3,test-aarch64-msvc-2

@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 199c03d has been approved by JonathanBrouwer

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


try-job: dist-various-1
try-job: dist-various-2
try-job: test-various
try-job: test-x86_64-gnu-aux
try-job: test-x86_64-msvc-1
try-job: test-aarch64-apple-1
try-job: test-aarch64-apple-2
try-job: test-x86_64-mingw-1
try-job: test-i686-msvc
try-job: test-armhf-gnu
try-job: test-x86_64-gnu-llvm-22-3
try-job: test-aarch64-msvc-2
@rust-bors

This comment has been minimized.

@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: 4927a01 (4927a01d3ff9ea851dc54fa14c6b2005a5762d1c)
Base parent: 8d77382 (8d773821aa649a470d740c3d61985a0507397e77)

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. 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 successful - CI
Approved by: JonathanBrouwer
Duration: 3h 21m 45s
Pushing bc9132d to main...

@rust-bors
rust-bors Bot merged commit bc9132d into rust-lang:main Nov 25, 2026
16 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor
What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 62bb1f5 (parent) -> bc9132d (this PR)

Test differences

Show 8 test diffs

Stage 1

  • [ui] tests/ui/coherence/orphan-neg-impl-negated-unsigned-literal.rs: [missing] -> pass (J0)
  • [ui] tests/ui/type-alias-impl-trait/next-solver-non-defining-use-ice-152446.rs: [missing] -> pass (J0)
  • [ui (polonius)] tests/ui/coherence/orphan-neg-impl-negated-unsigned-literal.rs: [missing] -> pass (J2)
  • [ui (polonius)] tests/ui/type-alias-impl-trait/next-solver-non-defining-use-ice-152446.rs: [missing] -> pass (J2)

Stage 2

  • [ui] tests/ui/coherence/orphan-neg-impl-negated-unsigned-literal.rs: [missing] -> pass (J1)
  • [ui] tests/ui/type-alias-impl-trait/next-solver-non-defining-use-ice-152446.rs: [missing] -> pass (J1)

Additionally, 2 doctest diffs were found. These are ignored, as they are noisy.

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard bc9132daa5c0be572ebb81304f6039d947298e67 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. test-i686-msvc: 1h 50m -> 3h 20m (+80.9%)
  2. dist-x86_64-msvc-alt: 1h 49m -> 2h 47m (+53.9%)
  3. test-i686-gnu-nopt-1: 1h 28m -> 2h 13m (+51.6%)
  4. dist-powerpc64le-linux-musl: 1h 8m -> 1h 40m (+45.2%)
  5. test-x86_64-msvc-ext2: 1h 41m -> 1h (-40.0%)
  6. test-x86_64-msvc-ext1: 2h 17m -> 1h 24m (-38.4%)
  7. test-x86_64-gnu-debug: 2h 11m -> 1h 23m (-36.1%)
  8. test-x86_64-msvc-1: 2h 8m -> 2h 53m (+35.5%)
  9. dist-x86_64-llvm-mingw: 2h 7m -> 1h 22m (-35.3%)
  10. dist-i686-msvc: 49m 19s -> 31m 56s (-35.2%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer

Copy link
Copy Markdown

Finished benchmarking commit (bc9132d): comparison URL.

Overall result: ❌ regressions - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.8% [0.8%, 0.9%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (secondary 1.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.4% [1.4%, 1.4%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

This perf run didn't have relevant results for this metric.

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 462.136s -> 462.454s (0.07%)
Artifact size: 405.63 MiB -> 405.60 MiB (-0.01%)

@rust-bors

rust-bors Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

📌 Perf builds for each rolled up PR:

PR# Message Perf Build Sha
#164693 rustc_symbol_mangling: use core's disambiguator for interna… aca40a60ce9489ff09d6a3cf0622a99079c4e28a
(link)
#165904 Fix ICE on negated unsigned literal after orphan Neg impl 764204fa03877cc43a735978f84b82fbecdaff8e
(link)
#166437 Fix FreeBSD getpriority difference 5a7e84b16a1fb00acf6eb3150fe4ed7c8b8a72df
(link)
#166517 Add regression test for #152446 254153d3228ed8a3f8761331d04d96d5a44b8448
(link)
#166546 Remove llvm_enzyme frontend module, since we don't need a f… 5677428deb2eb46bb3e80acd22f6c08d640c6910
(link)

parent commit: 62bb1f5634

In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: @rust-timer triage $SHA $SHA $SHA..., or run @rust-timer triage all to benchmark all rollup members.

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

Labels

merged-by-bors This PR was explicitly merged by bors. rollup A PR which is a rollup 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants