summaryrefslogtreecommitdiffstats
path: root/src/librustc_parse/parser/stmt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_parse/parser/stmt.rs')
-rw-r--r--src/librustc_parse/parser/stmt.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_parse/parser/stmt.rs b/src/librustc_parse/parser/stmt.rs
index b952e88..943b6ec 100644
--- a/src/librustc_parse/parser/stmt.rs
+++ b/src/librustc_parse/parser/stmt.rs
@@ -6,6 +6,7 @@ use super::diagnostics::Error;
6use crate::maybe_whole; 6use crate::maybe_whole;
7use crate::DirectoryOwnership; 7use crate::DirectoryOwnership;
8 8
9use rustc_errors::{PResult, Applicability};
9use syntax::ThinVec; 10use syntax::ThinVec;
10use syntax::ptr::P; 11use syntax::ptr::P;
11use syntax::ast; 12use syntax::ast;
@@ -13,11 +14,10 @@ use syntax::ast::{DUMMY_NODE_ID, Stmt, StmtKind, Local, Block, BlockCheckMode, E
13use syntax::ast::{Attribute, AttrStyle, VisibilityKind, MacStmtStyle, Mac}; 14use syntax::ast::{Attribute, AttrStyle, VisibilityKind, MacStmtStyle, Mac};
14use syntax::util::classify; 15use syntax::util::classify;
15use syntax::token; 16use syntax::token;
16use syntax::source_map::{respan, Span}; 17use syntax_pos::source_map::{respan, Span};
17use syntax::symbol::{kw, sym}; 18use syntax_pos::symbol::{kw, sym};
18 19
19use std::mem; 20use std::mem;
20use errors::{PResult, Applicability};
21 21
22impl<'a> Parser<'a> { 22impl<'a> Parser<'a> {
23 /// Parses a statement. This stops just before trailing semicolons on everything but items. 23 /// Parses a statement. This stops just before trailing semicolons on everything but items.