diff options
| author | Adam Perry <adam.n.perry@gmail.com> | 2020-01-03 05:44:49 -0800 |
|---|---|---|
| committer | Adam Perry <adam.n.perry@gmail.com> | 2020-01-04 10:02:17 -0800 |
| commit | 27b25eb822d32911b73991c7fd6921fea609f825 (patch) | |
| tree | 0932382c5f919a46a0df48777d358bf2ee5cca88 | |
| parent | b76a5be18f69b79ddad8a6b72faf8ae9f2bb5e6d (diff) | |
| download | rust-27b25eb822d32911b73991c7fd6921fea609f825.tar.gz rust-27b25eb822d32911b73991c7fd6921fea609f825.zip | |
Restrict visibility of location_triple_for_span.
| -rw-r--r-- | src/librustc_mir/interpret/intrinsics/caller_location.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/intrinsics/caller_location.rs b/src/librustc_mir/interpret/intrinsics/caller_location.rs index 0b07cb2f654..0525108d2d1 100644 --- a/src/librustc_mir/interpret/intrinsics/caller_location.rs +++ b/src/librustc_mir/interpret/intrinsics/caller_location.rs @@ -59,7 +59,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { self.alloc_caller_location(file, line, column) } - pub fn location_triple_for_span(&self, span: Span) -> (Symbol, u32, u32) { + pub(super) fn location_triple_for_span(&self, span: Span) -> (Symbol, u32, u32) { let topmost = span.ctxt().outer_expn().expansion_cause().unwrap_or(span); let caller = self.tcx.sess.source_map().lookup_char_pos(topmost.lo()); ( |
