Skip to content

Commit

Permalink
Restrict visibility of location_triple_for_span.
Browse files Browse the repository at this point in the history
  • Loading branch information
anp committed Jan 4, 2020
1 parent b76a5be commit 27b25eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/intrinsics/caller_location.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
(
Expand Down

0 comments on commit 27b25eb

Please sign in to comment.