]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/base.rs
Make fields of `Span` private
[rust.git] / src / librustc_trans / base.rs
index e4b090471d75a9ca493da22af3525d70de2f42c7..a6c6b0efcfa8cb7f9d760a92b22c06e07b49811d 100644 (file)
@@ -1371,7 +1371,7 @@ fn assert_symbols_are_distinct<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>, trans_i
             // Deterministically select one of the spans for error reporting
             let span = match (span1, span2) {
                 (Some(span1), Some(span2)) => {
-                    Some(if span1.lo.0 > span2.lo.0 {
+                    Some(if span1.lo().0 > span2.lo().0 {
                         span1
                     } else {
                         span2