rust/compiler/rustc_session/src/lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.0 KiB
Rust
Raw Normal View History

#![feature(if_let_guard)]
#![feature(let_chains)]
2022-02-18 23:48:49 +00:00
#![feature(let_else)]
2020-11-14 15:35:31 +00:00
#![feature(min_specialization)]
#![feature(never_type)]
#![feature(once_cell)]
#![feature(option_get_or_insert_default)]
#![feature(rustc_attrs)]
2022-07-01 13:48:23 +00:00
#![feature(map_many_mut)]
#![recursion_limit = "256"]
2022-02-23 13:06:22 +00:00
#![allow(rustc::potential_query_instability)]
2019-11-29 21:05:28 +00:00
#[macro_use]
extern crate rustc_macros;
pub mod errors;
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;
2019-11-29 20:45:26 +00:00
pub mod parse;
2019-11-29 21:05:28 +00:00
mod code_stats;
#[macro_use]
2019-11-29 21:05:28 +00:00
pub mod config;
pub mod cstore;
2019-11-29 21:05:28 +00:00
pub mod filesearch;
mod options;
2019-11-29 21:05:28 +00:00
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: rustc_ast::HashStableContext + rustc_hir::HashStableContext {}