Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove arena_cache modifier from associated_item query & copy ty::AssocItem instead of passing by ref #108075

Merged
merged 3 commits into from
Feb 17, 2023

Conversation

WaffleLapkin
Copy link
Member

r? @ghost

@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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Feb 15, 2023
@WaffleLapkin WaffleLapkin marked this pull request as draft February 15, 2023 09:46
@WaffleLapkin
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 15, 2023
@bors
Copy link
Contributor

bors commented Feb 15, 2023

⌛ Trying commit 1a5355fb820b5b154f1fc32bd756fb2d91fe9c2b with merge f0e0e22d1bd065156a940e921ea502d230ae5a7f...

@bors
Copy link
Contributor

bors commented Feb 15, 2023

☀️ Try build successful - checks-actions
Build commit: f0e0e22d1bd065156a940e921ea502d230ae5a7f (f0e0e22d1bd065156a940e921ea502d230ae5a7f)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (f0e0e22d1bd065156a940e921ea502d230ae5a7f): comparison URL.

Overall result: no relevant changes - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

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

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.9% [1.0%, 4.6%] 5
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

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

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 15, 2023
@Noratrieb
Copy link
Member

r? Nilstrieb
Looks good, it's just 24 bytes so this should be fine, perf is neutral as well.
Are there any usages in clippy? If yes, you should adjust them as well probably since you also changed rustdoc.
There's an internal lint about passing things by value that are #[rustc_pass_by_value]. Does it make sense to also add it here? It's generally used for IDs and other tiny things, I'm not sure whether it's worth bothering here, having a reference to an assoc item shouldn't hurt anyone.

@WaffleLapkin WaffleLapkin changed the title OwO Remove arena_cache modifier from associated_item query & copy ty::AssocItem instead of passing by ref Feb 15, 2023
@WaffleLapkin
Copy link
Member Author

@Nilstrieb clippy seems to be fine (x c clippy passes locally for me), #[rustc_pass_by_value] doesn't seem necessary to me.

@WaffleLapkin WaffleLapkin marked this pull request as ready for review February 15, 2023 19:15
@Noratrieb
Copy link
Member

r=me after rebase

@WaffleLapkin
Copy link
Member Author

@bors r=Nilstrieb

@bors
Copy link
Contributor

bors commented Feb 15, 2023

📌 Commit dce666b has been approved by Nilstrieb

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 Feb 15, 2023
@bors
Copy link
Contributor

bors commented Feb 17, 2023

⌛ Testing commit dce666b with merge 9aa5c24...

@bors
Copy link
Contributor

bors commented Feb 17, 2023

☀️ Test successful - checks-actions
Approved by: Nilstrieb
Pushing 9aa5c24 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented Feb 17, 2023

☀️ Test successful - checks-actions
Approved by: Nilstrieb
Pushing 9aa5c24 to master...

@bors bors added merged-by-bors This PR was explicitly merged by bors. labels Feb 17, 2023
@bors bors merged commit 9aa5c24 into rust-lang:master Feb 17, 2023
@rustbot rustbot added this to the 1.69.0 milestone Feb 17, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (9aa5c24): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

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

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

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

Cycles

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

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. 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. T-rustdoc Relevant to the rustdoc 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