about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-09 03:23:10 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-10-15 09:25:56 +0200
commit52d0e86b9a46ab74f76c0bc7b2b9df3d32fcfbc1 (patch)
treedb57bde7aa884d0fad1ff676d7b773b50af5b1e9 /src/libsyntax/parse/parser.rs
parentc29fe81ec42a89a5aadd8496855dc7dc43be7668 (diff)
downloadrust-52d0e86b9a46ab74f76c0bc7b2b9df3d32fcfbc1.tar.gz
rust-52d0e86b9a46ab74f76c0bc7b2b9df3d32fcfbc1.zip
syntax: extract sess.rs for ParseSess
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 478cfefc224..2b973479833 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1366,7 +1366,7 @@ impl<'a> Parser<'a> {
             ],
             Applicability::MaybeIncorrect,
         ).span_suggestion(
-            self.sess.source_map.next_point(self.prev_span),
+            self.sess.source_map().next_point(self.prev_span),
             "add a semicolon",
             ';'.to_string(),
             Applicability::MaybeIncorrect,