]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: expand: Fix formatting for "macro not found" error
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 6 Feb 2024 16:26:23 +0000 (17:26 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 21 Feb 2024 12:51:26 +0000 (13:51 +0100)
gcc/rust/ChangeLog:

* expand/rust-macro-expand.h (struct MacroExpander): Nitpick: fix
formatting of emitted error.

gcc/rust/expand/rust-macro-expand.h

index f18e8e24a1d34dbc4d5fb6a45d048a5a49b18473..896cdc6dcc8d4eba6045536e44e8fddd582041eb 100644 (file)
@@ -414,7 +414,7 @@ struct MacroExpander
       = mappings->lookup_derive_proc_macro_invocation (path);
     if (!macro.has_value ())
       {
-       rust_error_at (path.get_locus (), "Macro not found");
+       rust_error_at (path.get_locus (), "macro not found");
        return AST::Fragment::create_error ();
       }
 
@@ -437,7 +437,7 @@ struct MacroExpander
       = mappings->lookup_bang_proc_macro_invocation (invocation);
     if (!macro.has_value ())
       {
-       rust_error_at (invocation.get_locus (), "Macro not found");
+       rust_error_at (invocation.get_locus (), "macro not found");
        return AST::Fragment::create_error ();
       }
 
@@ -459,7 +459,7 @@ struct MacroExpander
       = mappings->lookup_attribute_proc_macro_invocation (path);
     if (!macro.has_value ())
       {
-       rust_error_at (path.get_locus (), "Macro not found");
+       rust_error_at (path.get_locus (), "macro not found");
        return AST::Fragment::create_error ();
       }