about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/diagnostics
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-07-04 17:23:24 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-07-06 19:09:47 +0900
commit83dea353849758a5445b21fa92aa21e5ac3b5fef (patch)
tree1ab1a6f3445f8b22e441bf34532cca7473238b43 /compiler/rustc_borrowck/src/diagnostics
parent5b8cf49c51833ee5d27ae2e8e179337dbb9f14d7 (diff)
downloadrust-83dea353849758a5445b21fa92aa21e5ac3b5fef.tar.gz
rust-83dea353849758a5445b21fa92aa21e5ac3b5fef.zip
replace `guess_head_span` with `def_span`
Diffstat (limited to 'compiler/rustc_borrowck/src/diagnostics')
-rw-r--r--compiler/rustc_borrowck/src/diagnostics/mod.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/mod.rs b/compiler/rustc_borrowck/src/diagnostics/mod.rs
index fbc3a8cc088..6fea6941085 100644
--- a/compiler/rustc_borrowck/src/diagnostics/mod.rs
+++ b/compiler/rustc_borrowck/src/diagnostics/mod.rs
@@ -812,12 +812,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
             return FnSelfUse {
                 var_span: stmt.source_info.span,
                 fn_call_span: *fn_span,
-                fn_span: self
-                    .infcx
-                    .tcx
-                    .sess
-                    .source_map()
-                    .guess_head_span(self.infcx.tcx.def_span(method_did)),
+                fn_span: self.infcx.tcx.def_span(method_did),
                 kind,
             };
         }