]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_session/src/lib.rs
Remove `crate` visibility usage in compiler
[rust.git] / compiler / rustc_session / src / lib.rs
1 #![feature(if_let_guard)]
2 #![feature(let_chains)]
3 #![cfg_attr(bootstrap, feature(derive_default_enum))]
4 #![feature(let_else)]
5 #![feature(min_specialization)]
6 #![feature(never_type)]
7 #![feature(once_cell)]
8 #![feature(option_get_or_insert_default)]
9 #![recursion_limit = "256"]
10 #![allow(rustc::potential_query_instability)]
11
12 #[macro_use]
13 extern crate rustc_macros;
14
15 pub mod cgu_reuse_tracker;
16 pub mod utils;
17 pub use lint::{declare_lint, declare_lint_pass, declare_tool_lint, impl_lint_pass};
18 pub use rustc_lint_defs as lint;
19 pub mod parse;
20
21 mod code_stats;
22 #[macro_use]
23 pub mod config;
24 pub mod cstore;
25 pub mod filesearch;
26 mod options;
27 pub mod search_paths;
28
29 mod session;
30 pub use session::*;
31
32 pub mod output;
33
34 pub use getopts;
35
36 /// Requirements for a `StableHashingContext` to be used in this crate.
37 /// This is a hack to allow using the `HashStable_Generic` derive macro
38 /// instead of implementing everything in `rustc_middle`.
39 pub trait HashStableContext: rustc_ast::HashStableContext + rustc_hir::HashStableContext {}