Skip to content

Revert #164014 (noop &T -> &T reborrows) - #165801

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
oli-obk:push-nnvulzrmotyx
Nov 11, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
oli-obk:push-nnvulzrmotyx

Conversation

@oli-obk

@oli-obk oli-obk commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Related discussion: #t-types/nominated > #164014: Don't emit no-op `&T` → `&T` reborrows @ 💬

Reverts #164014 as that has stable behaviour changes I forgot about.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 11, 2026
@rustbot

rustbot commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Fallback group: @Mark-Simulacrum, @jieyouxu
  • @Mark-Simulacrum, @jieyouxu expanded to Mark-Simulacrum, jieyouxu
  • Random selection from Mark-Simulacrum, jieyouxu

@rustbot

This comment has been minimized.

@jieyouxu

Copy link
Copy Markdown
Member

I think you reverted the empty logistics commit rather than the content commit(s)?

@oli-obk

oli-obk commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

interesting fail in reverting a merge commit lol

@rustbot

rustbot commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

clippy is developed in its own repository. If possible, consider making this change to rust-lang/rust-clippy instead.

cc @rust-lang/clippy

@rustbot rustbot added T-clippy Relevant to the Clippy team. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 11, 2026
@jieyouxu
jieyouxu marked this pull request as draft November 11, 2026 09:21
@rustbot rustbot 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-review Status: Awaiting review from the assignee but also interested parties. labels Nov 11, 2026
@jieyouxu
jieyouxu marked this pull request as ready for review November 11, 2026 09:21
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 11, 2026

@jieyouxu jieyouxu left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a clean revert and a revert-to-baseline.
@bors r+ rollup=never note="revert; has perf effects but can be included in a perf rollup"

View changes since this review

@rust-bors

rust-bors Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 0b7e2b4 has been tentatively approved by jieyouxu

It will be put into the queue for this repository once PR CI succeeds.

@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 11, 2026
@rust-bors

This comment has been minimized.

@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 11, 2026
@rust-bors

rust-bors Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: jieyouxu
Duration: 3h 21m 17s
Pushing 9f5e966 to main...

@rust-bors
rust-bors Bot merged commit 9f5e966 into rust-lang:main Nov 11, 2026
15 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 11, 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 e88737b (parent) -> 9f5e966 (this PR)

Test differences

Show 36 test diffs

Stage 1

  • [ui] tests/ui/coercion/no-noop-reborrows-closure.rs#fail0: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-closure.rs#fail1: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-closure.rs#pass: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail0: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail1: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail2: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut.rs#fail0: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut.rs#fail1: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut.rs#fail2: pass -> [missing] (J0)
  • [ui] tests/ui/coercion/no-noop-reborrows.rs: pass -> [missing] (J0)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-closure.rs#fail0: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-closure.rs#fail1: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-closure.rs#pass: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail0: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail1: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail2: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-mut.rs#fail0: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-mut.rs#fail1: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows-mut.rs#fail2: pass -> [missing] (J2)
  • [ui (polonius)] tests/ui/coercion/no-noop-reborrows.rs: pass -> [missing] (J2)

Stage 2

  • [ui] tests/ui/coercion/no-noop-reborrows-closure.rs#fail0: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-closure.rs#fail1: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-closure.rs#pass: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail0: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail1: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut-closure.rs#fail2: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut.rs#fail0: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut.rs#fail1: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows-mut.rs#fail2: pass -> [missing] (J1)
  • [ui] tests/ui/coercion/no-noop-reborrows.rs: pass -> [missing] (J1)

Additionally, 6 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 9f5e966d58e5cdf21160ba12907661b0720e8c69 --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-x86_64-msvc-2: 1h 31m -> 2h 42m (+77.9%)
  2. dist-x86_64-freebsd: 1h 6m -> 1h 40m (+51.9%)
  3. dist-x86_64-solaris: 1h 10m -> 1h 47m (+51.5%)
  4. dist-x86_64-musl: 1h 42m -> 2h 28m (+45.1%)
  5. test-x86_64-mingw-1: 1h 42m -> 2h 24m (+40.6%)
  6. test-i686-gnu-2: 1h 45m -> 1h 3m (-40.4%)
  7. test-x86_64-gnu-llvm-22-3: 1h 22m -> 1h 56m (+40.2%)
  8. test-x86_64-gnu-gcc-core-tests: 17m 54s -> 10m 53s (-39.2%)
  9. test-aarch64-apple-1: 1h 40m -> 2h 19m (+38.5%)
  10. dist-riscv64-linux-musl: 1h 8m -> 1h 33m (+37.8%)
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
Collaborator

Finished benchmarking commit (9f5e966): comparison URL.

Overall result: ❌ regressions - please read:

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

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.7% [0.2%, 4.1%] 158
Regressions ❌
(secondary)
1.5% [0.1%, 7.5%] 106
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.6% [-0.6%, -0.5%] 2
All ❌✅ (primary) 0.7% [0.2%, 4.1%] 158

Max RSS (memory usage)

Results (primary 1.3%, secondary 2.8%)

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

mean range count
Regressions ❌
(primary)
2.0% [0.5%, 4.0%] 14
Regressions ❌
(secondary)
4.6% [0.9%, 8.1%] 13
Improvements ✅
(primary)
-1.9% [-2.5%, -1.0%] 3
Improvements ✅
(secondary)
-5.0% [-5.8%, -3.6%] 3
All ❌✅ (primary) 1.3% [-2.5%, 4.0%] 17

Cycles

Results (primary 3.9%, secondary 4.6%)

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

mean range count
Regressions ❌
(primary)
3.9% [3.2%, 4.7%] 10
Regressions ❌
(secondary)
5.2% [1.8%, 9.2%] 16
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-5.2% [-5.2%, -5.2%] 1
All ❌✅ (primary) 3.9% [3.2%, 4.7%] 10

Binary size

Results (primary -0.2%, secondary 0.1%)

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

mean range count
Regressions ❌
(primary)
0.4% [0.1%, 1.0%] 8
Regressions ❌
(secondary)
0.3% [0.0%, 0.5%] 6
Improvements ✅
(primary)
-0.3% [-1.1%, -0.0%] 48
Improvements ✅
(secondary)
-0.1% [-0.3%, -0.1%] 5
All ❌✅ (primary) -0.2% [-1.1%, 1.0%] 56

Bootstrap: 484.585s -> 484.648s (0.01%)
Artifact size: 406.42 MiB -> 406.34 MiB (-0.02%)

@rustbot rustbot added the perf-regression Performance regression. label Nov 11, 2026
@Jules-Bertholet

Copy link
Copy Markdown
Contributor

@rustbot label perf-regression-triaged

Revert, will get re-applied after FCP

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Nov 11, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 13, 2026
Revert #164014 (noop &T -> &T reborrows)

Related discussion: [#t-types/nominated > #164014: Don't emit no-op `&T` → `&T` reborrows @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/326866-t-types.2Fnominated/topic/.23164014.3A.20Don.27t.20emit.20no-op.20.60.26T.60.20.E2.86.92.20.60.26T.60.20reborrows/near/639206575)


Reverts #164014 as that has stable behaviour changes I forgot about.
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. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. T-clippy Relevant to the Clippy team. 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.

5 participants