mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-30 20:44:34 +00:00
Fixes #87877 This change interacts badly with `noop_flat_map_stmt`, which synthesizes multiple statements with the same `NodeId`. I'm working on a better fix that will still allow us to remove this special case. For now, let's revert the change to fix the ICE. This reverts commit a4262cc9841d91d48ef994b36eab323e615a7083, reversing changes made to 8ee962f88e1be7e29482b13c7776c26b98a93bf7.
50 lines
1.0 KiB
Rust
50 lines
1.0 KiB
Rust
#![feature(crate_visibility_modifier)]
|
|
#![feature(decl_macro)]
|
|
#![feature(destructuring_assignment)]
|
|
#![feature(format_args_capture)]
|
|
#![feature(iter_zip)]
|
|
#![feature(proc_macro_diagnostic)]
|
|
#![feature(proc_macro_internals)]
|
|
#![feature(proc_macro_span)]
|
|
#![feature(try_blocks)]
|
|
|
|
#[macro_use]
|
|
extern crate rustc_macros;
|
|
|
|
extern crate proc_macro as pm;
|
|
|
|
mod placeholders;
|
|
mod proc_macro_server;
|
|
|
|
pub use mbe::macro_rules::compile_declarative_macro;
|
|
crate use rustc_span::hygiene;
|
|
pub mod base;
|
|
pub mod build;
|
|
#[macro_use]
|
|
pub mod config;
|
|
pub mod expand;
|
|
pub mod module;
|
|
pub mod proc_macro;
|
|
|
|
crate mod mbe;
|
|
|
|
// HACK(Centril, #64197): These shouldn't really be here.
|
|
// Rather, they should be with their respective modules which are defined in other crates.
|
|
// However, since for now constructing a `ParseSess` sorta requires `config` from this crate,
|
|
// these tests will need to live here in the iterim.
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
#[cfg(test)]
|
|
mod parse {
|
|
mod tests;
|
|
}
|
|
#[cfg(test)]
|
|
mod tokenstream {
|
|
mod tests;
|
|
}
|
|
#[cfg(test)]
|
|
mod mut_visit {
|
|
mod tests;
|
|
}
|