diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-04 17:23:24 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-06 19:09:47 +0900 |
| commit | 83dea353849758a5445b21fa92aa21e5ac3b5fef (patch) | |
| tree | 1ab1a6f3445f8b22e441bf34532cca7473238b43 /compiler/rustc_borrowck/src/diagnostics | |
| parent | 5b8cf49c51833ee5d27ae2e8e179337dbb9f14d7 (diff) | |
| download | rust-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.rs | 7 |
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, }; } |
