make set_span public, as all the fields it touches are public already

This commit is contained in:
Ralf Jung 2020-04-05 17:37:35 +02:00
parent 43cdfbb3fe
commit e92bde373a

View File

@ -297,7 +297,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
}
#[inline(always)]
pub(crate) fn set_span(&mut self, span: Span) {
pub fn set_span(&mut self, span: Span) {
self.tcx.span = span;
self.memory.tcx.span = span;
}