Skip to content

Conversation

@JonathanBrouwer
Copy link
Contributor

  • Removes a bunch of unused lifetimes in the attribute parsers
  • Creates two variants of PathParser, because we statically know which variant we're in

r? @jdonszelmann

@rustbot
Copy link
Collaborator

rustbot commented Dec 8, 2025

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) 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. labels Dec 8, 2025
@JonathanBrouwer
Copy link
Contributor Author

@bors try @rust-timer queue
Maybe the changes to the PathParser gain some perf?

@rust-timer

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Dec 8, 2025
@rust-bors

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 8, 2025
@jdonszelmann
Copy link
Contributor

Doubt it but we can try

@jdonszelmann
Copy link
Contributor

@bors r+ rollup

was debating whether to cancel the perf run. I guess we can either rollup never and get the perf run later or keep the run going. If we keep the current one going then this pr can be part of the next roll-up and will use fewer ci resources and land quicker so I'm letting the perf run here continue and am explicitly rolling the pr up.

@bors
Copy link
Collaborator

bors commented Dec 8, 2025

📌 Commit 5c661ae has been approved by jdonszelmann

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 8, 2025
@rust-bors
Copy link

rust-bors bot commented Dec 9, 2025

☀️ Try build successful (CI)
Build commit: c626dd2 (c626dd2960debb0071cacde4d04165c310c5301c, parent: 5bc345055b06dc096b01bc6d1e0cbe92d3cc630e)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c626dd2): comparison URL.

Overall result: ❌✅ regressions and improvements - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -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.1% [0.1%, 0.1%] 1
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.0% [-0.2%, 0.1%] 2

Max RSS (memory usage)

Results (primary -1.4%, secondary 0.2%)

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)
3.2% [3.2%, 3.2%] 1
Improvements ✅
(primary)
-1.4% [-1.4%, -1.4%] 1
Improvements ✅
(secondary)
-1.2% [-1.8%, -0.7%] 2
All ❌✅ (primary) -1.4% [-1.4%, -1.4%] 1

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 473.701s -> 470.928s (-0.59%)
Artifact size: 389.02 MiB -> 389.00 MiB (-0.01%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 9, 2025
@jdonszelmann
Copy link
Contributor

Nothing it seems

@JonathanBrouwer
Copy link
Contributor Author

Agreed this is probably just noise, I don't think this needs to be rollup=never
@bors rollup=always

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

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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