Skip to content

Commit 27b25eb

Browse files
committed
Restrict visibility of location_triple_for_span.
1 parent b76a5be commit 27b25eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/intrinsics/caller_location.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
5959
self.alloc_caller_location(file, line, column)
6060
}
6161

62-
pub fn location_triple_for_span(&self, span: Span) -> (Symbol, u32, u32) {
62+
pub(super) fn location_triple_for_span(&self, span: Span) -> (Symbol, u32, u32) {
6363
let topmost = span.ctxt().outer_expn().expansion_cause().unwrap_or(span);
6464
let caller = self.tcx.sess.source_map().lookup_char_pos(topmost.lo());
6565
(

0 commit comments

Comments
 (0)