Skip to content

Only display definition when suggesting a typo #70227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 23, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Only display definition on typo
  • Loading branch information
LeSeulArtichaut committed Mar 21, 2020
commit e991df82faf3b2807e2baab166ec0d589b38b31f
2 changes: 1 addition & 1 deletion src/librustc_resolve/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ impl<'a> Resolver<'a> {
});
if let Some(span) = def_span {
err.span_label(
span,
self.session.source_map().def_span(span),
&format!(
"similarly named {} `{}` defined here",
suggestion.res.descr(),
Expand Down