]> gcc.gnu.org Git - gcc.git/commitdiff
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)
committerCohenArthur <arthur.cohen@embecosm.com>
Tue, 13 Feb 2024 11:21:47 +0000 (11:21 +0000)
gcc/rust/ChangeLog:

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

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

index bc57c7a74fb95b70b0344a771c3762d2b329bc1c..9cc00048619c692b1b4bd8d7db5a95fb36e3fbf2 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 ();
       }
 
This page took 0.059885 seconds and 5 git commands to generate.