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

Avoid duplicate large_assignments lints #114774

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

Enselic
Copy link
Member

@Enselic Enselic commented Aug 13, 2023

By checking for overlapping spans.

This PR does the "reduce noisiness" task in #83518.

r? @oli-obk who added E-mentor and E-help-wanted and wrote the initial code.

(The fix itself is in dc82736. The two commits before that are just small refactorings.)

@rustbot
Copy link
Collaborator

rustbot commented Aug 13, 2023

Could not assign reviewer from: oli-obk.
User(s) oli-obk are either the PR author, already assigned, or on vacation, and there are no other candidates.
Use r? to specify someone else to assign.

@rustbot
Copy link
Collaborator

rustbot commented Aug 13, 2023

r? @jackh726

(rustbot has picked a reviewer for you, use r? to override)

@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 13, 2023
@oli-obk
Copy link
Contributor

oli-obk commented Aug 28, 2023

@bors r+ rollup

Thanks!

@bors
Copy link
Contributor

bors commented Aug 28, 2023

📌 Commit dc82736 has been approved by oli-obk

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

bors commented Aug 28, 2023

⌛ Testing commit dc82736 with merge c587fd4...

@bors
Copy link
Contributor

bors commented Aug 28, 2023

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing c587fd4 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 28, 2023
@bors bors merged commit c587fd4 into rust-lang:master Aug 28, 2023
12 checks passed
@rustbot rustbot added this to the 1.74.0 milestone Aug 28, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c587fd4): 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
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.2% [-0.2%, -0.2%] 2
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.2% [-0.2%, -0.2%] 2

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)
2.0% [0.9%, 2.9%] 3
Regressions ❌
(secondary)
3.0% [3.0%, 3.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.0% [0.9%, 2.9%] 3

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: 630.448s -> 629.54s (-0.14%)
Artifact size: 316.23 MiB -> 316.21 MiB (-0.01%)

@Enselic Enselic deleted the less-move-size-noise branch August 29, 2023 03:19
@Enselic
Copy link
Member Author

Enselic commented Aug 29, 2023

@oli-obk (Asking here to avoid noise in the tracking issue.) For the "stop linting in box/arc initialization" step, do you have some angle of attack in mind? For box it seems pretty straightforward since it is a lang item, so code involving box can relatively easily be special-cased in the compiler. But for arc, I see no clear path forward. As E-mentor, maybe you already have a plan for how this can be solved?

@oli-obk
Copy link
Contributor

oli-obk commented Aug 29, 2023

In addition to lang items, we also have diagnostics items. So you can mark things as diagnostic items in libstd and then check for it in the lint.

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