drive-by: Fix path spans
This commit is contained in:
parent
ae60015e76
commit
1225a65389
3 changed files with 7 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue