Add error codes in libsyntax
This commit is contained in:
parent
ea0dc92972
commit
0e326d4780
4 changed files with 142 additions and 55 deletions
|
@ -33,6 +33,7 @@
|
|||
#![feature(str_escape)]
|
||||
#![feature(unicode)]
|
||||
#![feature(question_mark)]
|
||||
#![feature(rustc_diagnostic_macros)]
|
||||
|
||||
extern crate serialize;
|
||||
extern crate term;
|
||||
|
@ -66,6 +67,18 @@ macro_rules! panictry {
|
|||
})
|
||||
}
|
||||
|
||||
#[macro_use]
|
||||
pub mod diagnostics {
|
||||
#[macro_use]
|
||||
pub mod macros;
|
||||
pub mod plugin;
|
||||
pub mod metadata;
|
||||
}
|
||||
|
||||
// NB: This module needs to be declared first so diagnostics are
|
||||
// registered before they are used.
|
||||
pub mod diagnostic_list;
|
||||
|
||||
pub mod util {
|
||||
pub mod interner;
|
||||
pub mod lev_distance;
|
||||
|
@ -80,12 +93,6 @@ pub mod util {
|
|||
pub use self::thin_vec::ThinVec;
|
||||
}
|
||||
|
||||
pub mod diagnostics {
|
||||
pub mod macros;
|
||||
pub mod plugin;
|
||||
pub mod metadata;
|
||||
}
|
||||
|
||||
pub mod json;
|
||||
|
||||
pub mod syntax {
|
||||
|
@ -130,3 +137,5 @@ pub mod ext {
|
|||
pub mod macro_rules;
|
||||
}
|
||||
}
|
||||
|
||||
__build_diagnostic_array! { libsyntax, DIAGNOSTICS }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue