]> git.lizzy.rs Git - rust.git/commitdiff
reexport errors from syntax. fix failing cfail test
authorJonathan Turner <jturner@mozilla.com>
Fri, 24 Jun 2016 23:10:15 +0000 (19:10 -0400)
committerJonathan Turner <jturner@mozilla.com>
Fri, 24 Jun 2016 23:10:15 +0000 (19:10 -0400)
src/libsyntax/diagnostics/plugin.rs
src/libsyntax/lib.rs
src/test/compile-fail-fulldeps/qquote.rs

index f5bc01b4e22626519c3b5253460d5430b6bf4762..abf2b39d5c6deecd2f880fceae45ce82da2995cb 100644 (file)
@@ -23,6 +23,8 @@
 
 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;
 
index 91e55c07d9b4e8fe5e4e53d14bf2af81cbc5bafb..ae61801c65bb8229c0b9f0d1affa992711630e88 100644 (file)
 #[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
index 9a193469615b9f167c0ec052cdbfc26ab9b59abf..e29ded8a052c6f73b16462e0a89b0ddd26e7f714 100644 (file)
@@ -18,7 +18,7 @@
 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();