Update to use new librustc_error_codes library

This commit is contained in:
Guillaume Gomez 2019-11-11 22:46:56 +01:00
parent 3816fce76c
commit 798e389e57
106 changed files with 179 additions and 59 deletions

View file

@ -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.

View file

@ -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;

View file

@ -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>`.
///