diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-11-07 14:27:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-07 14:27:23 +0100 |
| commit | 28c113697065aadb9e85f6d5b3a5b075b2bd060e (patch) | |
| tree | e77945f5b5f8e8dfac3b0a18ad8802f12091f30f /src/libsyntax/parse/parser/diagnostics.rs | |
| parent | 59e79ff13769c1d062b805c3372d64b34e44fe1c (diff) | |
| parent | cc9c139694389c8df158640d4bcc20a2fe31f1ea (diff) | |
Rollup merge of #65916 - Centril:split-syntax-3, r=davidtwco
syntax: move stuff around Part of https://github.com/rust-lang/rust/pull/65324. r? @davidtwco cc @estebank @petrochenkov
Diffstat (limited to 'src/libsyntax/parse/parser/diagnostics.rs')
| -rw-r--r-- | src/libsyntax/parse/parser/diagnostics.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libsyntax/parse/parser/diagnostics.rs b/src/libsyntax/parse/parser/diagnostics.rs index 49a517a5c44..26d7f48025e 100644 --- a/src/libsyntax/parse/parser/diagnostics.rs +++ b/src/libsyntax/parse/parser/diagnostics.rs @@ -1,18 +1,16 @@ -use super::{ - BlockMode, PathStyle, SemiColonMode, TokenType, TokenExpectType, - SeqSep, PResult, Parser -}; +use super::{BlockMode, PathStyle, SemiColonMode, TokenType, TokenExpectType, SeqSep, Parser}; use crate::ast::{ self, Param, BinOpKind, BindingMode, BlockCheckMode, Expr, ExprKind, Ident, Item, ItemKind, Mutability, Pat, PatKind, PathSegment, QSelf, Ty, TyKind, }; -use crate::parse::token::{self, TokenKind, token_can_begin_expr}; +use crate::token::{self, TokenKind, token_can_begin_expr}; use crate::print::pprust; use crate::ptr::P; use crate::symbol::{kw, sym}; use crate::ThinVec; use crate::util::parser::AssocOp; -use errors::{Applicability, DiagnosticBuilder, DiagnosticId, pluralize}; + +use errors::{PResult, Applicability, DiagnosticBuilder, DiagnosticId, pluralize}; use rustc_data_structures::fx::FxHashSet; use syntax_pos::{Span, DUMMY_SP, MultiSpan, SpanSnippetError}; use log::{debug, trace}; |
