1
Fork 0

Use rustc_fluent_macro::fluent_messages! directly.

Currently we always do this:
```
use rustc_fluent_macro::fluent_messages;
...
fluent_messages! { "./example.ftl" }
```
But there is no need, we can just do this everywhere:
```
rustc_fluent_macro::fluent_messages! { "./example.ftl" }
```
which is shorter.
This commit is contained in:
Nicholas Nethercote 2023-11-22 09:53:07 +11:00
parent 1a4219da43
commit 57cd5e6551
43 changed files with 279 additions and 349 deletions

View file

@ -20,8 +20,6 @@ pub mod errors;
#[macro_use]
extern crate tracing;
use rustc_fluent_macro::fluent_messages;
pub mod utils;
pub use lint::{declare_lint, declare_lint_pass, declare_tool_lint, impl_lint_pass};
pub use rustc_lint_defs as lint;
@ -45,7 +43,7 @@ pub use getopts;
mod version;
pub use version::RustcVersion;
fluent_messages! { "../messages.ftl" }
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