mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
063ef18fdc
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.
39 lines
988 B
Rust
39 lines
988 B
Rust
// tidy-alphabetical-start
|
|
#![allow(internal_features)]
|
|
#![allow(rustc::diagnostic_outside_of_impl)]
|
|
#![doc(rust_logo)]
|
|
#![feature(array_windows)]
|
|
#![feature(associated_type_defaults)]
|
|
#![feature(if_let_guard)]
|
|
#![feature(let_chains)]
|
|
#![feature(macro_metavar_expr)]
|
|
#![feature(map_try_insert)]
|
|
#![feature(proc_macro_diagnostic)]
|
|
#![feature(proc_macro_internals)]
|
|
#![feature(rustdoc_internals)]
|
|
#![feature(try_blocks)]
|
|
#![feature(yeet_expr)]
|
|
#![warn(unreachable_pub)]
|
|
// tidy-alphabetical-end
|
|
|
|
extern crate proc_macro as pm;
|
|
|
|
mod build;
|
|
mod errors;
|
|
// FIXME(Nilstrieb) Translate macro_rules diagnostics
|
|
#[allow(rustc::untranslatable_diagnostic)]
|
|
mod mbe;
|
|
mod placeholders;
|
|
mod proc_macro_server;
|
|
|
|
pub use mbe::macro_rules::compile_declarative_macro;
|
|
pub mod base;
|
|
pub mod config;
|
|
pub mod expand;
|
|
pub mod module;
|
|
// FIXME(Nilstrieb) Translate proc_macro diagnostics
|
|
#[allow(rustc::untranslatable_diagnostic)]
|
|
pub mod proc_macro;
|
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|