diff options
| author | Michael Goulet <michael@errs.io> | 2022-11-12 20:03:20 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-12-14 18:26:09 +0000 |
| commit | 1225a6538999f32a10157c6965e86816d3820fe8 (patch) | |
| tree | 5348de4bc71dd744ad1995f094438dca448c3b7d /compiler | |
| parent | ae60015e764fa0ba8e56c58373166a1c5d267e8e (diff) | |
| download | rust-1225a6538999f32a10157c6965e86816d3820fe8.tar.gz rust-1225a6538999f32a10157c6965e86816d3820fe8.zip | |
drive-by: Fix path spans
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs index 31cc8d9ff6c..8ee31e4b498 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs @@ -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 { |
