提交 27b25eb8 编写于 作者: A Adam Perry

Restrict visibility of location_triple_for_span.

上级 b76a5be1
......@@ -59,7 +59,7 @@ pub fn alloc_caller_location_for_span(&mut self, span: Span) -> MPlaceTy<'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());
(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册