Skip to content

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