Update to use new librustc_error_codes library
This commit is contained in:
parent
3816fce76c
commit
798e389e57
106 changed files with 179 additions and 59 deletions
|
|
@ -18,6 +18,8 @@ use syntax_pos::{Span, DUMMY_SP, MultiSpan, SpanSnippetError};
|
|||
use log::{debug, trace};
|
||||
use std::mem;
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
const TURBOFISH: &'static str = "use `::<...>` instead of `<...>` to specify type arguments";
|
||||
|
||||
/// Creates a placeholder argument.
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ use std::borrow::Cow;
|
|||
use std::{cmp, mem, slice};
|
||||
use std::path::PathBuf;
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
bitflags::bitflags! {
|
||||
struct Restrictions: u8 {
|
||||
const STMT_EXPR = 1 << 0;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ use syntax_pos::symbol::kw;
|
|||
|
||||
use errors::{PResult, Applicability, pluralize};
|
||||
|
||||
use rustc_error_codes::*;
|
||||
|
||||
/// Returns `true` if `IDENT t` can start a type -- `IDENT::a::b`, `IDENT<u8, u8>`,
|
||||
/// `IDENT<<u8 as Trait>::AssocTy>`.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue