rustc_session/
lib.rs

1// tidy-alphabetical-start
2#![allow(internal_features)]
3#![feature(default_field_values)]
4#![feature(iter_intersperse)]
5#![feature(rustc_attrs)]
6// To generate CodegenOptionsTargetModifiers and UnstableOptionsTargetModifiers enums
7// with macro_rules, it is necessary to use recursive mechanic ("Incremental TT Munchers").
8#![recursion_limit = "256"]
9// tidy-alphabetical-end
10
11pub mod errors;
12
13pub mod utils;
14pub use lint::{declare_lint, declare_lint_pass, declare_tool_lint, impl_lint_pass};
15pub use rustc_lint_defs as lint;
16pub mod parse;
17
18pub mod code_stats;
19#[macro_use]
20pub mod config;
21pub mod cstore;
22pub mod filesearch;
23mod options;
24pub mod search_paths;
25
26mod session;
27pub use session::*;
28
29pub mod output;
30
31pub use getopts;
32
33rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
34
35/// Requirements for a `StableHashingContext` to be used in this crate.
36/// This is a hack to allow using the `HashStable_Generic` derive macro
37/// instead of implementing everything in `rustc_middle`.
38pub trait HashStableContext: rustc_ast::HashStableContext + rustc_hir::HashStableContext {}
OSZAR »