-
Notifications
You must be signed in to change notification settings - Fork 14k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
#89862 rewrote the inference error reporting, but slightly worsened some causes or requires some additional improvements.
- readd a special diagnostic for
forloops - maybe readd handling for try expressions
? - add
InferSourceforx.into()to<Type as Into<_>>::into(x) - add
ty_msgback if no infer source is found - in the suggested type, try to only print
_for things while are fully inferred and use some different stuff for unresolved inference vars, e.g "specify the generic paramTforFoo<i32, T, _>"- remember the used parameters in
ty_to_stringfor this
- remember the used parameters in
- remember the inferred type for
InferSource::GenericArgand use them to compute the cost and for the error msg, generally improve cost computation, e.g.channel()- change
source_costto improve the diagnostics when usingchannel().
- change
-
impl_candidatesinemit_inference_failure_errIMPORTANT - figure out how to not mention macro internals in error messages.
- fix the explicit
FIXME(#89862)in some tests - inference var origins: https://github.com/rust-lang/rust/pull/89862/files#r870179263
- figure out how to best deal with rewrite error handling for unresolved inference vars #89862 (comment)
- autoborrow method call
-
ui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rsfixme -
help: type parameter declared herereadd maybe
estebank and aliemjay
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.