about summary refs log tree commit diff
path: root/compiler/rustc_session/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_session/src/lib.rs')
-rw-r--r--compiler/rustc_session/src/lib.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/lib.rs b/compiler/rustc_session/src/lib.rs
new file mode 100644
index 00000000000..9a82ae3fc10
--- /dev/null
+++ b/compiler/rustc_session/src/lib.rs
@@ -0,0 +1,31 @@
+#![feature(crate_visibility_modifier)]
+#![feature(once_cell)]
+#![recursion_limit = "256"]
+
+#[macro_use]
+extern crate rustc_macros;
+
+pub mod cgu_reuse_tracker;
+pub mod utils;
+pub use lint::{declare_lint, declare_lint_pass, declare_tool_lint, impl_lint_pass};
+pub use rustc_lint_defs as lint;
+pub mod parse;
+
+mod code_stats;
+#[macro_use]
+pub mod config;
+pub mod filesearch;
+mod options;
+pub mod search_paths;
+
+mod session;
+pub use session::*;
+
+pub mod output;
+
+pub use getopts;
+
+/// Requirements for a `StableHashingContext` to be used in this crate.
+/// This is a hack to allow using the `HashStable_Generic` derive macro
+/// instead of implementing everything in `rustc_middle`.
+pub trait HashStableContext {}