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

parent_module_from_def_id does not need to be a query. #114516

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Aug 5, 2023

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. labels Aug 5, 2023
@cjgillot
Copy link
Contributor Author

cjgillot commented Aug 5, 2023

@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 Aug 5, 2023
@bors
Copy link
Contributor

bors commented Aug 5, 2023

⌛ Trying commit 826c1061c22583f2ea2a7b3d34a506a5c48b784e with merge da06d7bcbe8e7f803ce8751c76a7489cd07dfdab...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Aug 5, 2023

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

@rust-timer

This comment has been minimized.

Copy link
Member

@compiler-errors compiler-errors left a comment

Choose a reason for hiding this comment

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

i know this is a draft, but r=me if perf comes back well

edit: huh, actually maybe need to look at the rustdoc failure first?

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (da06d7bcbe8e7f803ce8751c76a7489cd07dfdab): comparison URL.

Overall result: ❌✅ regressions and improvements - 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.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

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

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
57.9% [0.2%, 194.0%] 6
Regressions ❌
(secondary)
0.3% [0.3%, 0.3%] 1
Improvements ✅
(primary)
-1.4% [-2.1%, -1.1%] 18
Improvements ✅
(secondary)
-1.1% [-1.5%, -0.7%] 13
All ❌✅ (primary) 13.4% [-2.1%, 194.0%] 24

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)
4.3% [1.0%, 7.3%] 5
Regressions ❌
(secondary)
3.5% [2.0%, 5.7%] 3
Improvements ✅
(primary)
-5.6% [-6.8%, -4.3%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.5% [-6.8%, 7.3%] 7

Cycles

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)
54.1% [3.0%, 170.0%] 6
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 54.1% [3.0%, 170.0%] 6

Binary size

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

Bootstrap: 648.817s -> 648.57s (-0.04%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Aug 6, 2023
@cjgillot
Copy link
Contributor Author

cjgillot commented Aug 6, 2023

@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 Aug 6, 2023
@bors
Copy link
Contributor

bors commented Aug 6, 2023

⌛ Trying commit 7a51b30 with merge c8f39db6e8dd706493e01bda31c9590175dd50ca...

@bors
Copy link
Contributor

bors commented Aug 6, 2023

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

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c8f39db6e8dd706493e01bda31c9590175dd50ca): comparison URL.

Overall result: ✅ improvements - 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 is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.4% [-2.0%, -1.1%] 17
Improvements ✅
(secondary)
-1.1% [-1.4%, -0.2%] 12
All ❌✅ (primary) -1.4% [-2.0%, -1.1%] 17

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)
3.7% [3.7%, 3.7%] 1
Improvements ✅
(primary)
-3.6% [-6.4%, -0.5%] 4
Improvements ✅
(secondary)
-2.8% [-3.7%, -2.1%] 3
All ❌✅ (primary) -3.6% [-6.4%, -0.5%] 4

Cycles

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)
-2.5% [-2.5%, -2.5%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.5% [-2.5%, -2.5%] 1

Binary size

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

Bootstrap: 649.941s -> 650.088s (0.02%)

@rustbot rustbot removed S-waiting-on-perf Status: Waiting on a perf run to be completed. perf-regression Performance regression. labels Aug 6, 2023
@cjgillot cjgillot marked this pull request as ready for review August 6, 2023 12:47
@cjgillot
Copy link
Contributor Author

cjgillot commented Aug 6, 2023

r? @compiler-errors

The first commit was buggy, parent_module_from_def_id(id) would return id, which made rustdoc misbehave.
This version corrects the bug, and accurately returns the closest strict parent which is a module.

@compiler-errors
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Aug 6, 2023

📌 Commit 7a51b30 has been approved by compiler-errors

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 Aug 6, 2023
@bors
Copy link
Contributor

bors commented Aug 6, 2023

⌛ Testing commit 7a51b30 with merge 5973bfb...

@bors
Copy link
Contributor

bors commented Aug 6, 2023

☀️ Test successful - checks-actions
Approved by: compiler-errors
Pushing 5973bfb to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 6, 2023
@bors bors merged commit 5973bfb into rust-lang:master Aug 6, 2023
11 checks passed
@rustbot rustbot added this to the 1.73.0 milestone Aug 6, 2023
@cjgillot cjgillot deleted the direct-module-parent branch August 6, 2023 20:24
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (5973bfb): comparison URL.

Overall result: ✅ improvements - no action needed

@rustbot label: -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.3% [0.2%, 0.4%] 2
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.4% [-2.0%, -1.1%] 17
Improvements ✅
(secondary)
-1.2% [-1.5%, -0.3%] 11
All ❌✅ (primary) -1.2% [-2.0%, 0.4%] 19

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)
4.1% [2.6%, 4.9%] 3
Improvements ✅
(primary)
-4.5% [-6.1%, -3.4%] 3
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -4.5% [-6.1%, -3.4%] 3

Cycles

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)
-2.9% [-2.9%, -2.9%] 1
Improvements ✅
(secondary)
-2.1% [-2.1%, -2.1%] 1
All ❌✅ (primary) -2.9% [-2.9%, -2.9%] 1

Binary size

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

Bootstrap: 650.515s -> 651.426s (0.14%)

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants