public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9109] gccrs: expand: Fix formatting for "macro not found" error
@ 2024-02-21 12:51 Arthur Cohen
  0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-02-21 12:51 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f8dad5a80cdd0827443f1e164b5afa469e0d6d2e

commit r14-9109-gf8dad5a80cdd0827443f1e164b5afa469e0d6d2e
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Tue Feb 6 17:26:23 2024 +0100

    gccrs: expand: Fix formatting for "macro not found" error
    
    gcc/rust/ChangeLog:
    
            * expand/rust-macro-expand.h (struct MacroExpander): Nitpick: fix
            formatting of emitted error.

Diff:
---
 gcc/rust/expand/rust-macro-expand.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/rust/expand/rust-macro-expand.h b/gcc/rust/expand/rust-macro-expand.h
index f18e8e24a1d3..896cdc6dcc8d 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 ();
       }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-21 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-21 12:51 [gcc r14-9109] gccrs: expand: Fix formatting for "macro not found" error Arthur Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).