1
Fork 0

Render missing generics suggestion verbosely

This commit is contained in:
Michael Goulet 2023-01-08 23:21:46 +00:00
parent 1bc3683b32
commit 950b47fb96
15 changed files with 103 additions and 52 deletions

View file

@ -167,7 +167,7 @@ impl<'a> Resolver<'a> {
);
err.emit();
} else if let Some((span, msg, sugg, appl)) = suggestion {
err.span_suggestion(span, msg, sugg, appl);
err.span_suggestion_verbose(span, msg, sugg, appl);
err.emit();
} else if let [segment] = path.as_slice() && is_call {
err.stash(segment.ident.span, rustc_errors::StashKey::CallIntoMethod);