Skip to content

Replace Box<[TraitCandidate]> with &'hir [TraitCandidate<'hir>]#153494

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
aerooneqq:boxed-trait-candidates-to-hir-arena
Mar 7, 2026
Merged

Replace Box<[TraitCandidate]> with &'hir [TraitCandidate<'hir>]#153494
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
aerooneqq:boxed-trait-candidates-to-hir-arena

Conversation

@aerooneqq
Copy link
Contributor

@aerooneqq aerooneqq commented Mar 6, 2026

This PR allocates trait candidates on HIR arena and replaces remove with get in ResolverAstLowering. First step for #153489.

r? @petrochenkov

@rustbot rustbot added 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 Mar 6, 2026
@petrochenkov
Copy link
Contributor

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rust-bors

This comment has been minimized.

rust-bors bot pushed a commit that referenced this pull request Mar 6, 2026
…, r=<try>

Replace Box<[TraitCandidate]> with &'hir [TraitCandidate<'hir>]
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 6, 2026
@petrochenkov petrochenkov removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 6, 2026
@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 6, 2026

☀️ Try build successful (CI)
Build commit: ff56b27 (ff56b275d82baa6b2f18a05cfdae3eb869ce720f, parent: f82485388963286763f8c8a9261ac227627f6a18)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ff56b27): comparison URL.

Overall result: ✅ 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
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 1
Improvements ✅
(secondary)
-0.2% [-0.3%, -0.1%] 10
All ❌✅ (primary) -0.2% [-0.2%, -0.2%] 1

Max RSS (memory usage)

Results (primary -1.5%, secondary -3.1%)

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)
- - 0
Improvements ✅
(primary)
-1.5% [-2.2%, -0.7%] 2
Improvements ✅
(secondary)
-3.1% [-4.5%, -1.7%] 2
All ❌✅ (primary) -1.5% [-2.2%, -0.7%] 2

Cycles

Results (primary -0.1%, secondary 2.3%)

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

mean range count
Regressions ❌
(primary)
2.0% [2.0%, 2.0%] 1
Regressions ❌
(secondary)
2.3% [2.3%, 2.3%] 1
Improvements ✅
(primary)
-2.2% [-2.2%, -2.2%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.1% [-2.2%, 2.0%] 2

Binary size

Results (primary 0.0%, 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.0% [0.0%, 0.1%] 11
Regressions ❌
(secondary)
0.1% [0.0%, 0.2%] 16
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [0.0%, 0.1%] 11

Bootstrap: 480.442s -> 483.222s (0.58%)
Artifact size: 397.10 MiB -> 395.17 MiB (-0.48%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 6, 2026
@petrochenkov
Copy link
Contributor

@bors r+ rollup=maybe

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 7, 2026

📌 Commit dc31c15 has been approved by petrochenkov

It is now in the queue for this repository.

@rust-bors rust-bors bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Mar 7, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Mar 7, 2026
…o-hir-arena, r=petrochenkov

Replace Box<[TraitCandidate]> with &'hir [TraitCandidate<'hir>]

This PR allocates trait candidates on HIR arena and replaces `remove` with `get` in `ResolverAstLowering`. First step for rust-lang#153489.

r? @petrochenkov
@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 7, 2026

⌛ Testing commit dc31c15 with merge a25cb8a...

Workflow: https://github.com/rust-lang/rust/actions/runs/22802635722

rust-bors bot pushed a commit that referenced this pull request Mar 7, 2026
…, r=petrochenkov

Replace Box<[TraitCandidate]> with &'hir [TraitCandidate<'hir>]

This PR allocates trait candidates on HIR arena and replaces `remove` with `get` in `ResolverAstLowering`. First step for #153489.

r? @petrochenkov
@JonathanBrouwer
Copy link
Contributor

@bors yield
Yielding to enclosing rollup

@rust-bors
Copy link
Contributor

rust-bors bot commented Mar 7, 2026

Auto build was cancelled. Cancelled workflows:

The next pull request likely to be tested is #153541.

rust-bors bot pushed a commit that referenced this pull request Mar 7, 2026
…uwer

Rollup of 2 pull requests

Successful merges:

 - #153494 (Replace Box<[TraitCandidate]> with &'hir [TraitCandidate<'hir>])
 - #153465 (Fix incorrect rustdoc JSON representation of `#[doc(test(..))]` attrs.)
@rust-bors rust-bors bot merged commit 10f2c48 into rust-lang:main Mar 7, 2026
12 of 13 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Mar 7, 2026
rust-timer added a commit that referenced this pull request Mar 7, 2026
Rollup merge of #153494 - aerooneqq:boxed-trait-candidates-to-hir-arena, r=petrochenkov

Replace Box<[TraitCandidate]> with &'hir [TraitCandidate<'hir>]

This PR allocates trait candidates on HIR arena and replaces `remove` with `get` in `ResolverAstLowering`. First step for #153489.

r? @petrochenkov
@aerooneqq aerooneqq deleted the boxed-trait-candidates-to-hir-arena branch March 9, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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