rust/compiler/rustc_session/src/lib.rs

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

45 lines
1 KiB
Rust
Raw Normal View History

#![feature(let_chains)]
#![feature(lazy_cell)]
#![feature(option_get_or_insert_default)]
#![feature(rustc_attrs)]
2022-07-01 15:48:23 +02:00
#![feature(map_many_mut)]
#![feature(iter_intersperse)]
2023-08-22 07:06:38 -04:00
#![allow(internal_features)]
2019-11-29 16:05:28 -05:00
#[macro_use]
extern crate rustc_macros;
pub mod errors;
#[macro_use]
extern crate tracing;
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 15:45:26 -05:00
pub mod parse;
2019-11-29 16:05:28 -05:00
pub mod code_stats;
#[macro_use]
2019-11-29 16:05:28 -05:00
pub mod config;
pub mod cstore;
2019-11-29 16:05:28 -05:00
pub mod filesearch;
mod options;
2019-11-29 16:05:28 -05:00
pub mod search_paths;
mod session;
pub use session::*;
pub mod output;
pub use getopts;
2023-10-26 17:18:21 -07:00
mod version;
pub use version::RustcVersion;
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
/// 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 {}