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