mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
reexport errors from syntax. fix failing cfail test
This commit is contained in:
parent
9f2a50785b
commit
bc1400600b
@ -23,6 +23,8 @@ use util::small_vector::SmallVector;
|
|||||||
|
|
||||||
use diagnostics::metadata::output_metadata;
|
use diagnostics::metadata::output_metadata;
|
||||||
|
|
||||||
|
pub use errors::*;
|
||||||
|
|
||||||
// Maximum width of any line in an extended error description (inclusive).
|
// Maximum width of any line in an extended error description (inclusive).
|
||||||
const MAX_DESCRIPTION_WIDTH: usize = 80;
|
const MAX_DESCRIPTION_WIDTH: usize = 80;
|
||||||
|
|
||||||
|
@ -40,11 +40,12 @@ extern crate libc;
|
|||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
#[macro_use] #[no_link] extern crate rustc_bitflags;
|
#[macro_use] #[no_link] extern crate rustc_bitflags;
|
||||||
extern crate rustc_unicode;
|
extern crate rustc_unicode;
|
||||||
extern crate rustc_errors as errors;
|
pub extern crate rustc_errors as errors;
|
||||||
extern crate syntax_pos;
|
extern crate syntax_pos;
|
||||||
|
|
||||||
extern crate serialize as rustc_serialize; // used by deriving
|
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
|
// 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
|
// 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
|
// errors; eventually we plan to convert all code using panictry to just use
|
||||||
|
@ -18,7 +18,7 @@ extern crate syntax_pos;
|
|||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
use syntax::parse;
|
use syntax::parse;
|
||||||
use syntax::print::pprust;
|
use syntax::print::pprust;
|
||||||
use syntax_pos::{self, DUMMY_SP};
|
use syntax_pos::DUMMY_SP;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let ps = syntax::parse::ParseSess::new();
|
let ps = syntax::parse::ParseSess::new();
|
||||||
|
Loading…
Reference in New Issue
Block a user