diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-12-14 11:17:55 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-12-17 09:35:50 +1300 |
| commit | 6309b0f5bb558b844f45b2d313d2078fd7b7614c (patch) | |
| tree | 3666b39af4692755af1cdac1bde215bbb2842f02 /src/libsyntax/lib.rs | |
| parent | 073b0f9b852fa8b14ea4ab8c5a724043eb39fce5 (diff) | |
| download | rust-6309b0f5bb558b844f45b2d313d2078fd7b7614c.tar.gz rust-6309b0f5bb558b844f45b2d313d2078fd7b7614c.zip | |
move error handling from libsyntax/diagnostics.rs to libsyntax/errors/*
Also split out emitters into their own module.
Diffstat (limited to 'src/libsyntax/lib.rs')
| -rw-r--r-- | src/libsyntax/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 73d7025b4f1..47340d31224 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -52,7 +52,7 @@ extern crate serialize as rustc_serialize; // used by deriving macro_rules! panictry { ($e:expr) => ({ use std::result::Result::{Ok, Err}; - use diagnostic::FatalError; + use errors::FatalError; match $e { Ok(e) => e, Err(FatalError) => panic!(FatalError) @@ -78,6 +78,8 @@ pub mod diagnostics { pub mod metadata; } +pub mod errors; + pub mod syntax { pub use ext; pub use parse; @@ -90,7 +92,6 @@ pub mod ast_util; pub mod attr; pub mod codemap; pub mod config; -pub mod diagnostic; pub mod entry; pub mod feature_gate; pub mod fold; |
