]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/mir/block.rs
Make fields of `Span` private
[rust.git] / src / librustc_trans / mir / block.rs
index 57709b18c3b1c851e515193629bd881fcee6aa9a..bba3b1fa5baee102f3873310c99c19f09a53e76e 100644 (file)
@@ -330,7 +330,7 @@ fn trans_terminator(&mut self,
                 self.set_debug_loc(&bcx, terminator.source_info);
 
                 // Get the location information.
-                let loc = bcx.sess().codemap().lookup_char_pos(span.lo);
+                let loc = bcx.sess().codemap().lookup_char_pos(span.lo());
                 let filename = Symbol::intern(&loc.file.name).as_str();
                 let filename = C_str_slice(bcx.ccx, filename);
                 let line = C_u32(bcx.ccx, loc.line as u32);