1
Fork 0

drive-by: Fix path spans

This commit is contained in:
Michael Goulet 2022-11-12 20:03:20 +00:00
parent ae60015e76
commit 1225a65389
3 changed files with 7 additions and 7 deletions

View file

@ -2302,7 +2302,7 @@ impl<'tcx> InferCtxtPrivExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
)
};
let mut suggestions = vec![(
trait_path_segment.ident.span.shrink_to_lo(),
path.span.shrink_to_lo(),
format!("<{} as ", self.tcx.type_of(impl_def_id))
)];
if let Some(generic_arg) = trait_path_segment.args {