diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-23 14:42:54 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-07-28 23:14:04 +0200 |
| commit | 6733bc30667b18c0c2deef39c8318b7b39ed6536 (patch) | |
| tree | 7be320c8cf8110b6c65028afedbe7f5bd336d748 /compiler/rustc_privacy/src | |
| parent | 36f4f4aa38563d0c02bbdbbc03fb20145edef567 (diff) | |
| download | rust-6733bc30667b18c0c2deef39c8318b7b39ed6536.tar.gz rust-6733bc30667b18c0c2deef39c8318b7b39ed6536.zip | |
Remove guess_head_span.
Diffstat (limited to 'compiler/rustc_privacy/src')
| -rw-r--r-- | compiler/rustc_privacy/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs index 390d6f5a856..43e4d252676 100644 --- a/compiler/rustc_privacy/src/lib.rs +++ b/compiler/rustc_privacy/src/lib.rs @@ -1754,8 +1754,7 @@ impl SearchInterfaceForPrivateItemsVisitor<'_> { || self.in_assoc_ty || self.tcx.resolutions(()).has_pub_restricted { - let vis_span = - self.tcx.sess.source_map().guess_head_span(self.tcx.def_span(def_id)); + let vis_span = self.tcx.def_span(def_id); if kind == "trait" { self.tcx.sess.emit_err(InPublicInterfaceTraits { span, |
