You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#89862 rewrote the inference error reporting, but slightly worsened some causes or requires some additional improvements.
readd a special diagnostic for for loops
maybe readd handling for try expressions ?
add InferSource for x.into() to <Type as Into<_>>::into(x)
add ty_msg back 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 param T for Foo<i32, T, _>"
remember the used parameters in ty_to_string for this
remember the inferred type for InferSource::GenericArg and use them to compute the cost and for the error msg, generally improve cost computation, e.g. channel()
change source_cost to improve the diagnostics when using channel().
impl_candidates in emit_inference_failure_errIMPORTANT
figure out how to not mention macro internals in error messages.
#89862 rewrote the inference error reporting, but slightly worsened some causes or requires some additional improvements.
forloops?InferSourceforx.into()to<Type as Into<_>>::into(x)ty_msgback if no infer source is found_for things while are fully inferred and use some different stuff for unresolved inference vars, e.g "specify the generic paramTforFoo<i32, T, _>"ty_to_stringfor thisInferSource::GenericArgand use them to compute the cost and for the error msg, generally improve cost computation, e.g.channel()source_costto improve the diagnostics when usingchannel().impl_candidatesinemit_inference_failure_errIMPORTANTFIXME(#89862)in some testsui/impl-trait/diagnostics/fully-qualified-path-impl-trait.rsfixmehelp: type parameter declared herereadd maybe