diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-22 12:48:18 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-26 08:38:02 +1100 |
| commit | 1a4219da43461fa37a9a68f9e57bf019ac9091e0 (patch) | |
| tree | 4a67443926ae771d7f63a18a3e53d9a8e6ccd779 /compiler/rustc_fluent_macro/src | |
| parent | a733082be9962317e41f357a9708632a759c28b2 (diff) | |
| download | rust-1a4219da43461fa37a9a68f9e57bf019ac9091e0.tar.gz rust-1a4219da43461fa37a9a68f9e57bf019ac9091e0.zip | |
Add a useful comment.
Diffstat (limited to 'compiler/rustc_fluent_macro/src')
| -rw-r--r-- | compiler/rustc_fluent_macro/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_fluent_macro/src/lib.rs b/compiler/rustc_fluent_macro/src/lib.rs index b041fad1f13..fc65d1eb8c4 100644 --- a/compiler/rustc_fluent_macro/src/lib.rs +++ b/compiler/rustc_fluent_macro/src/lib.rs @@ -61,6 +61,10 @@ mod fluent; /// ); /// err.emit(); /// ``` +/// +/// Note: any crate using this macro must also have a dependency on +/// `rustc_errors`, because the generated code refers to things from that +/// crate. #[proc_macro] pub fn fluent_messages(input: TokenStream) -> TokenStream { fluent::fluent_messages(input) |
