reexport errors from syntax. fix failing cfail test

This commit is contained in:
Jonathan Turner 2016-06-24 19:10:15 -04:00
parent 9f2a50785b
commit bc1400600b
3 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,8 @@ use util::small_vector::SmallVector;
use diagnostics::metadata::output_metadata;
pub use errors::*;
// Maximum width of any line in an extended error description (inclusive).
const MAX_DESCRIPTION_WIDTH: usize = 80;

View File

@ -40,11 +40,12 @@ extern crate libc;
#[macro_use] extern crate log;
#[macro_use] #[no_link] extern crate rustc_bitflags;
extern crate rustc_unicode;
extern crate rustc_errors as errors;
pub extern crate rustc_errors as errors;
extern crate syntax_pos;
extern crate serialize as rustc_serialize; // used by deriving
// A variant of 'try!' that panics on an Err. This is used as a crutch on the
// way towards a non-panic!-prone parser. It should be used for fatal parsing
// errors; eventually we plan to convert all code using panictry to just use

View File

@ -18,7 +18,7 @@ extern crate syntax_pos;
use syntax::ast;
use syntax::parse;
use syntax::print::pprust;
use syntax_pos::{self, DUMMY_SP};
use syntax_pos::DUMMY_SP;
fn main() {
let ps = syntax::parse::ParseSess::new();