diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-01 16:49:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 16:49:31 +0200 |
| commit | 8db3d7cfb635356f16fd71dd8e873093799690da (patch) | |
| tree | b4f964862f56138a64199918b7e62203f950e079 /compiler/rustc_trait_selection/src | |
| parent | 1530ed8373ea3f8863efceb3b0584b4cf0bdbada (diff) | |
| parent | 2134dd3b483970352a85ff99cd237fc2488d9099 (diff) | |
| download | rust-8db3d7cfb635356f16fd71dd8e873093799690da.tar.gz rust-8db3d7cfb635356f16fd71dd8e873093799690da.zip | |
Rollup merge of #99911 - cjgillot:no-guess, r=davidtwco
Remove some uses of `guess_head_span`
That function cuts a span at the first occurrence of `{`. Using `def_span` is almost always more precise.
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index b2eb8fdf8a5..c3abb515b03 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -1946,7 +1946,6 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { )); let original_span = err.span.primary_span().unwrap(); - let original_span = self.tcx.sess.source_map().guess_head_span(original_span); let mut span = MultiSpan::from_span(original_span); let message = outer_generator |
