3

Ignore paths from expansion in `unused_qualifications` by Alexendoo · Pull Reque...

 4 weeks ago
source link: https://github.com/rust-lang/rust/pull/122545
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Member

If any of the path segments are from an expansion the lint is skipped currently, but a path from an expansion where all of the segments are passed in would not be. Doesn't seem that likely to occur but it could happen

Collaborator

r? @michaelwoerister

rustbot has assigned @michaelwoerister.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

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 15, 2024

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

Mar 15, 2024

This comment was marked as resolved.

Thanks for the PR, @Alexendoo! This looks sensible to me, but r? @petrochenkov for double checking.

Contributor

I don't think it's possible to construct a path with such span, except by AST-based built-in macros.
But I don't see any harm here either, except maybe a tiny performance difference.
r=me after rebase.
@rustbot author

michaelwoerister reacted with heart emoji

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

Mar 20, 2024

Contributor

@bors r+ rollup

Contributor

📌 Commit a845246 has been approved by petrochenkov

It is now in the queue for this repository.

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

Mar 20, 2024

bors

merged commit 31adfd7 into

rust-lang:master

Mar 21, 2024

11 checks passed

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

Mar 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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

Milestone

1.79.0

Development

Successfully merging this pull request may close these issues.

None yet

5 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK