// N.B., this module needs to be declared first so diagnostics are
// registered before they are used.
-pub mod diagnostics;
+pub mod error_codes;
#[macro_use]
pub mod query;
use rustc_codegen_ssa::ModuleCodegen;
use rustc_codegen_utils::codegen_backend::CodegenBackend;
-mod diagnostics;
+mod error_codes;
mod back {
mod archive;
// N.B., this module needs to be declared first so diagnostics are
// registered before they are used.
-mod diagnostics;
+mod error_codes;
pub mod common;
pub mod traits;
#[macro_use]
extern crate rustc;
-mod diagnostics;
+mod error_codes;
mod nonstandard_style;
pub mod builtin;
mod types;
#[macro_use]
extern crate rustc_data_structures;
-mod diagnostics;
+mod error_codes;
mod index_builder;
mod index;
#[macro_use]
extern crate syntax;
-mod diagnostics;
+mod error_codes;
mod borrow_check;
mod build;
use rustc::ty::query::Providers;
-mod diagnostics;
+mod error_codes;
pub mod ast_validation;
pub mod rvalue_promotion;
pub use registry::Registry;
-mod diagnostics;
+mod error_codes;
pub mod registry;
pub mod load;
pub mod build;
use std::{cmp, fmt, mem};
use std::marker::PhantomData;
-mod diagnostics;
+mod error_codes;
////////////////////////////////////////////////////////////////////////////////
/// Generic infrastructure used to implement specific visitors below.
use rustc_data_structures::ptr_key::PtrKey;
use rustc_data_structures::sync::Lrc;
-use error_reporting::{find_span_of_binding_until_next_binding, extend_span_to_previous_binding};
+use diagnostics::{find_span_of_binding_until_next_binding, extend_span_to_previous_binding};
use resolve_imports::{ImportDirective, ImportDirectiveSubclass, NameResolution, ImportResolver};
use macros::{InvocationData, LegacyBinding, ParentScope};
// N.B., this module needs to be declared first so diagnostics are
// registered before they are used.
+mod error_codes;
mod diagnostics;
-mod error_reporting;
mod macros;
mod check_unused;
mod build_reduced_graph;
// N.B., this module needs to be declared first so diagnostics are
// registered before they are used.
-mod diagnostics;
+mod error_codes;
mod astconv;
mod check;
extern crate proc_macro;
-mod diagnostics;
+mod error_codes;
mod asm;
mod assert;