Skip to content

Commit

Permalink
Only display definition on typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSeulArtichaut committed Mar 21, 2020
1 parent 98803c1 commit e991df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_resolve/diagnostics.rs
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

0 comments on commit e991df8

Please sign in to comment.