diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-09 03:23:10 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-15 09:25:56 +0200 |
| commit | 52d0e86b9a46ab74f76c0bc7b2b9df3d32fcfbc1 (patch) | |
| tree | db57bde7aa884d0fad1ff676d7b773b50af5b1e9 /src/libsyntax/parse/parser.rs | |
| parent | c29fe81ec42a89a5aadd8496855dc7dc43be7668 (diff) | |
| download | rust-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.rs | 2 |
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, |
