From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7905) id 45F07385840A; Wed, 21 Feb 2024 12:51:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45F07385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708519907; bh=ixXQGNpqXfCbTDUUGah4GjowGNE8glhCbO//9wzbt8E=; h=From:To:Subject:Date:From; b=RNxCDqC+kWUOlj5ItYExIPWgaomE61Z2vBbu6BvzVKSkY8yGoSDyE/5VbccTNwHZa 5rKV685rkoUoiDhLN22FDwm5OiA59cChApCPuAHn3YghZqe2DwqSX0hxZK1Cq8pkye NSZ8LrHwq+x2TI5ZnTsWZHjAVgnxZt9i2eE39ifA= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Arthur Cohen To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9109] gccrs: expand: Fix formatting for "macro not found" error X-Act-Checkin: gcc X-Git-Author: Arthur Cohen X-Git-Refname: refs/heads/trunk X-Git-Oldrev: 17a7fd17b7e42e42a9165b127fb9bd5e4e81f276 X-Git-Newrev: f8dad5a80cdd0827443f1e164b5afa469e0d6d2e Message-Id: <20240221125147.45F07385840A@sourceware.org> Date: Wed, 21 Feb 2024 12:51:47 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f8dad5a80cdd0827443f1e164b5afa469e0d6d2e commit r14-9109-gf8dad5a80cdd0827443f1e164b5afa469e0d6d2e Author: Arthur Cohen 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 (); }