]> git.lizzy.rs Git - rust.git/commitdiff
make set_span public, as all the fields it touches are public already
authorRalf Jung <post@ralfj.de>
Sun, 5 Apr 2020 15:37:35 +0000 (17:37 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 5 Apr 2020 17:28:28 +0000 (19:28 +0200)
src/librustc_mir/interpret/eval_context.rs

index 3c5f091f46df7bc334df38cbcbc0b922d0d05488..72d20644fe8b20303240fa1391431f99e1b0a305 100644 (file)
@@ -297,7 +297,7 @@ pub fn new(
     }
 
     #[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;
     }