Only display definition on typo

This commit is contained in:
LeSeulArtichaut 2020-03-21 14:28:07 +01:00
parent 98803c182b
commit e991df82fa

View file

@ -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(),