Skip to content

Commit bc14006

Browse files
author
Jonathan Turner
committed
reexport errors from syntax. fix failing cfail test
1 parent 9f2a507 commit bc14006

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/libsyntax/diagnostics/plugin.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ use util::small_vector::SmallVector;
2323

2424
use diagnostics::metadata::output_metadata;
2525

26+
pub use errors::*;
27+
2628
// Maximum width of any line in an extended error description (inclusive).
2729
const MAX_DESCRIPTION_WIDTH: usize = 80;
2830

src/libsyntax/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ extern crate libc;
4040
#[macro_use] extern crate log;
4141
#[macro_use] #[no_link] extern crate rustc_bitflags;
4242
extern crate rustc_unicode;
43-
extern crate rustc_errors as errors;
43+
pub extern crate rustc_errors as errors;
4444
extern crate syntax_pos;
4545

4646
extern crate serialize as rustc_serialize; // used by deriving
4747

48+
4849
// A variant of 'try!' that panics on an Err. This is used as a crutch on the
4950
// way towards a non-panic!-prone parser. It should be used for fatal parsing
5051
// errors; eventually we plan to convert all code using panictry to just use

src/test/compile-fail-fulldeps/qquote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extern crate syntax_pos;
1818
use syntax::ast;
1919
use syntax::parse;
2020
use syntax::print::pprust;
21-
use syntax_pos::{self, DUMMY_SP};
21+
use syntax_pos::DUMMY_SP;
2222

2323
fn main() {
2424
let ps = syntax::parse::ParseSess::new();

0 commit comments

Comments
 (0)