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

Make lint: lint_dropping_references lint_forgetting_copy_types lint_forgetting_references give suggestion if possible. #125531

Merged

Conversation

surechen
Copy link
Contributor

@surechen surechen commented May 25, 2024

This is a follow-up PR of #125433. When it's merged, I want change lint dropping_copy_types to use the same Subdiagnostic struct UseLetUnderscoreIgnoreSuggestion which is added in this PR.

Hi, Thank you(@Urgau ) again for your help in the previous PR. If your time permits, please also take a look at this one.

r? compiler

@rustbot
Copy link
Collaborator

rustbot commented May 25, 2024

Failed to set assignee to Urgau: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@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 May 25, 2024
@rust-log-analyzer

This comment has been minimized.

@surechen surechen force-pushed the make_suggestion_for_note_like_drop_lint branch from 078441c to 1028092 Compare May 25, 2024 04:50
compiler/rustc_lint/messages.ftl Outdated Show resolved Hide resolved
compiler/rustc_lint/src/lints.rs Outdated Show resolved Hide resolved
@surechen surechen force-pushed the make_suggestion_for_note_like_drop_lint branch 2 times, most recently from 963e221 to 066c5e9 Compare May 25, 2024 16:38
@bors
Copy link
Contributor

bors commented May 29, 2024

☔ The latest upstream changes (presumably #125433) made this pull request unmergeable. Please resolve the merge conflicts.

@Urgau
Copy link
Member

Urgau commented May 29, 2024

Looks go to me. Could you rebase on top of #125433.

@rustbot author
r? Urgau

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 29, 2024
@rustbot rustbot assigned Urgau and unassigned oli-obk May 29, 2024
@surechen surechen force-pushed the make_suggestion_for_note_like_drop_lint branch from 066c5e9 to 9d1ed80 Compare May 29, 2024 10:12
@Urgau
Copy link
Member

Urgau commented May 29, 2024

@bors r+

@bors
Copy link
Contributor

bors commented May 29, 2024

📌 Commit 9d1ed80 has been approved by Urgau

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 29, 2024
@bors
Copy link
Contributor

bors commented May 29, 2024

⌛ Testing commit 9d1ed80 with merge a83f933...

@bors
Copy link
Contributor

bors commented May 29, 2024

☀️ Test successful - checks-actions
Approved by: Urgau
Pushing a83f933 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 29, 2024
@bors bors merged commit a83f933 into rust-lang:master May 29, 2024
7 checks passed
@rustbot rustbot added this to the 1.80.0 milestone May 29, 2024
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (a83f933): 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
Improvements ✅
(secondary)
-0.4% [-0.4%, -0.3%] 3
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (primary 0.0%)

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.7% [2.7%, 2.7%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.7% [-2.7%, -2.7%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.0% [-2.7%, 2.7%] 2

Cycles

Results (primary 2.7%, secondary 3.0%)

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.7% [2.3%, 3.0%] 4
Regressions ❌
(secondary)
3.0% [2.2%, 3.8%] 12
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.7% [2.3%, 3.0%] 4

Binary size

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

Bootstrap: 667.137s -> 667.715s (0.09%)
Artifact size: 318.87 MiB -> 318.83 MiB (-0.01%)

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.

7 participants