Skip to content

bad diagnostic for trait impl requirement #123292

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

Noticed in Crater, seems like it's probably a regression but just in quality (this is entirely new AFAICT):

[INFO] [stderr] note: the requirement `_ <: _` appears on the `impl`'s method `try_from` but not on the corresponding trait's method
[INFO] [stderr]  --> $RUST/core/src/convert/mod.rs
[INFO] [stderr]   |
[INFO] [stderr]   = note: in this trait
[INFO] [stderr]  ::: $RUST/core/src/convert/mod.rs
[INFO] [stderr]   |
[INFO] [stderr]   = note: this trait's method doesn't have the requirement `_ <: _`

Saying that "_ <: _" is probably useless to 99% of readers, and <: in general feels a bit internal-y to me?

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-trait-systemArea: Trait systemD-confusingDiagnostics: Confusing error or lint that should be reworked.S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions