Skip to content

Commit

Permalink
make set_span public, as all the fields it touches are public already
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 5, 2020
1 parent 43cdfbb commit e92bde3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/eval_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e92bde3

Please sign in to comment.