2024-04-28 22:38:05 +00:00
|
|
|
// tidy-alphabetical-start
|
|
|
|
#![allow(internal_features)]
|
|
|
|
#![allow(rustc::diagnostic_outside_of_impl)]
|
2023-11-13 12:39:17 +00:00
|
|
|
#![doc(rust_logo)]
|
2022-06-09 02:46:51 +00:00
|
|
|
#![feature(array_windows)]
|
2022-01-05 06:15:44 +00:00
|
|
|
#![feature(associated_type_defaults)]
|
2021-08-16 15:29:49 +00:00
|
|
|
#![feature(if_let_guard)]
|
2022-08-20 18:40:08 +00:00
|
|
|
#![feature(let_chains)]
|
2022-04-07 11:13:41 +00:00
|
|
|
#![feature(macro_metavar_expr)]
|
2023-12-26 13:30:31 +00:00
|
|
|
#![feature(map_try_insert)]
|
2019-10-16 08:59:30 +00:00
|
|
|
#![feature(proc_macro_diagnostic)]
|
|
|
|
#![feature(proc_macro_internals)]
|
2024-04-28 22:38:05 +00:00
|
|
|
#![feature(rustdoc_internals)]
|
2020-03-08 21:21:37 +00:00
|
|
|
#![feature(try_blocks)]
|
2024-03-15 11:37:42 +00:00
|
|
|
#![feature(yeet_expr)]
|
2024-04-28 22:38:05 +00:00
|
|
|
// tidy-alphabetical-end
|
2019-10-16 08:59:30 +00:00
|
|
|
|
|
|
|
extern crate proc_macro as pm;
|
|
|
|
|
2024-04-30 00:20:05 +00:00
|
|
|
mod build;
|
|
|
|
mod errors;
|
|
|
|
// FIXME(Nilstrieb) Translate macro_rules diagnostics
|
|
|
|
#[allow(rustc::untranslatable_diagnostic)]
|
|
|
|
mod mbe;
|
2019-10-16 08:59:30 +00:00
|
|
|
mod placeholders;
|
|
|
|
mod proc_macro_server;
|
|
|
|
|
|
|
|
pub use mbe::macro_rules::compile_declarative_macro;
|
|
|
|
pub mod base;
|
2020-03-08 21:32:25 +00:00
|
|
|
pub mod config;
|
2019-10-16 08:59:30 +00:00
|
|
|
pub mod expand;
|
2020-03-08 21:21:37 +00:00
|
|
|
pub mod module;
|
2022-11-15 13:24:33 +00:00
|
|
|
// FIXME(Nilstrieb) Translate proc_macro diagnostics
|
|
|
|
#[allow(rustc::untranslatable_diagnostic)]
|
2019-10-16 08:59:30 +00:00
|
|
|
pub mod proc_macro;
|
|
|
|
|
2023-11-21 22:53:07 +00:00
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|