]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/lexer/comments.rs
Make fields of `Span` private
[rust.git] / src / libsyntax / parse / lexer / comments.rs
index f65fffebe337a21b2a4cb5b5d47b692b5f8575fb..fb558d1a58f85140060ed1ecd95f26d8a93280a3 100644 (file)
@@ -386,7 +386,7 @@ pub fn gather_comments_and_literals(sess: &ParseSess, path: String, srdr: &mut R
                 debug!("tok lit: {}", s);
                 literals.push(Literal {
                     lit: s.to_string(),
-                    pos: sp.lo,
+                    pos: sp.lo(),
                 });
             })
         } else {