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

Not warn unused symbols in default trait methods #118165

Closed
wants to merge 1 commit into from

Conversation

mu001999
Copy link
Contributor

@mu001999 mu001999 commented Nov 22, 2023

Fixes #118139

We are not sure default trait methods to be live or not, just like implementations of traits and trait methods. This change makes them consistent.

@rustbot
Copy link
Collaborator

rustbot commented Nov 22, 2023

r? @b-naber

(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 Nov 22, 2023
@shepmaster
Copy link
Member

While this does make it consistent (which is good!), I had really hoped that we'd go the other way and detect more dead code, not less 😢 .

@mu001999 mu001999 closed this Nov 24, 2023
@shepmaster
Copy link
Member

Hopefully you didn't close this PR because of my comment — I don't have any say on whether the PR is the actual desired correct direction or not! I'll just give my opinions on what I'd like Rust to do 😉

@mu001999
Copy link
Contributor Author

Hopefully you didn't close this PR because of my comment — I don't have any say on whether the PR is the actual desired correct direction or not! I'll just give my opinions on what I'd like Rust to do 😉

Haha,I opened another pr #118257 cause I think we can do what you said ;)

@mu001999 mu001999 deleted the fix/118139 branch March 11, 2024 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dead code lint should include unused default trait methods in the unused chain
4 participants