mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

Revert <https://github.com/rust-lang/rust/pull/138084> to buy time to consider options that avoids breaking downstream usages of cargo on distributed `rustc-src` artifacts, where such cargo invocations fail due to inability to inherit `lints` from workspace root manifest's `workspace.lints` (this is only valid for the source rust-lang/rust workspace, but not really the distributed `rustc-src` artifacts). This breakage was reported in <https://github.com/rust-lang/rust/issues/138304>. This reverts commit48caf81484
, reversing changes made toc6662879b2
.
41 lines
1.1 KiB
Rust
41 lines
1.1 KiB
Rust
// tidy-alphabetical-start
|
|
#![allow(internal_features)]
|
|
#![feature(default_field_values)]
|
|
#![feature(iter_intersperse)]
|
|
#![feature(let_chains)]
|
|
#![feature(rustc_attrs)]
|
|
// To generate CodegenOptionsTargetModifiers and UnstableOptionsTargetModifiers enums
|
|
// with macro_rules, it is necessary to use recursive mechanic ("Incremental TT Munchers").
|
|
#![recursion_limit = "256"]
|
|
#![warn(unreachable_pub)]
|
|
// tidy-alphabetical-end
|
|
|
|
pub mod errors;
|
|
|
|
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;
|
|
|
|
pub mod code_stats;
|
|
#[macro_use]
|
|
pub mod config;
|
|
pub mod cstore;
|
|
pub mod filesearch;
|
|
mod options;
|
|
pub mod search_paths;
|
|
|
|
mod session;
|
|
pub use session::*;
|
|
|
|
pub mod output;
|
|
|
|
pub use getopts;
|
|
|
|
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 {}
|