diff mbox series

[COMMITTED,4/9] gccrs: expand: Fix formatting for "macro not found" error

Message ID 20240221131636.3336103-7-arthur.cohen@embecosm.com
State New
Headers show
Series [COMMITTED,1/9] gccrs: Fix typo in RegionConstraints instance | expand

Commit Message

Arthur Cohen Feb. 21, 2024, 1:15 p.m. UTC
From: Arthur Cohen <arthur.cohen@embecosm.com>

gcc/rust/ChangeLog:

	* expand/rust-macro-expand.h (struct MacroExpander): Nitpick: fix
	formatting of emitted error.
---
 gcc/rust/expand/rust-macro-expand.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/gcc/rust/expand/rust-macro-expand.h b/gcc/rust/expand/rust-macro-expand.h
index f18e8e24a1d..896cdc6dcc8 100644
--- a/gcc/rust/expand/rust-macro-expand.h
+++ b/gcc/rust/expand/rust-macro-expand.h
@@ -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 ();
       }