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