diff options
| author | Michael Goulet <michael@errs.io> | 2022-09-01 19:52:39 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-09-04 01:55:51 +0000 |
| commit | c23fe81764281c35b58dcf578a494076bf2325c0 (patch) | |
| tree | a2cdce71cb9ca7e9bafa9d8fab95b624b75f831d /compiler | |
| parent | 84f0c3f79a85329dd79a54694ff8a7f427c842e9 (diff) | |
| download | rust-c23fe81764281c35b58dcf578a494076bf2325c0.tar.gz rust-c23fe81764281c35b58dcf578a494076bf2325c0.zip | |
Use head span for rustc_on_unimplemented's enclosing_scope attr
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 99046bd126f..8fd2e1de7a1 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs @@ -526,7 +526,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { }); let enclosing_scope_span = - tcx.hir().span_with_body(tcx.hir().local_def_id_to_hir_id(body)); + tcx.hir().span(tcx.hir().local_def_id_to_hir_id(body)); err.span_label(enclosing_scope_span, s); } |
