Skip to content

Conversation

@samueltardieu
Copy link
Member

Pointing to the missing method definition in external crates will use paths which depend on the system, and even on the Rust compiler version used when the iterator is defined in the standard library.

When the trait being implemented and whose method is missing is external, point only to the trait implementation. The user will be able to figure out, or even navigate using their IDE, to the proper definition.

As a side-effect, this will remove a large lintcheck churn at every Rustup for this lint.

changelog: [missing_trait_methods]: better help message

Pointing to the missing method definition in external crates will use
paths which depend on the system, and even on the Rust compiler version
used when the iterator is defined in the standard library.

When the trait being implemented and whose method is missing is
external, point only to the trait implementation. The user will be able
to figure out, or even navigate using their IDE, to the proper
definition.

As a side-effect, this will remove a large lintcheck churn at every Rustup 
for this lint.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 11, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 11, 2026

r? @llogiq

rustbot has assigned @llogiq.
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

@samueltardieu
Copy link
Member Author

A large number of changes should appear in lintcheck: this is expected.

@github-actions
Copy link

Lintcheck changes for 47b987e

Lint Added Removed Changed
clippy::missing_trait_methods 0 0 45582

This comment will be updated if you push new changes

@llogiq
Copy link
Contributor

llogiq commented Jan 11, 2026

Looks good to me. Thank you!

@llogiq llogiq added this pull request to the merge queue Jan 11, 2026
Merged via the queue into rust-lang:master with commit 88ab1a3 Jan 11, 2026
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 11, 2026
@samueltardieu samueltardieu deleted the features/missing-trait-methods-external branch January 11, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants