public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] fix #1263; wrapping gcc's "sorry_at" with "rust_sorry_at" Date: Tue, 21 Jun 2022 10:33:44 +0000 (GMT) [thread overview] Message-ID: <20220621103344.D36773840C15@sourceware.org> (raw) https://gcc.gnu.org/g:94ac628fd2054a652f5ec1e96ab876ecb776a9ea commit 94ac628fd2054a652f5ec1e96ab876ecb776a9ea Author: andrewnaguib <24280372+ndrwnaguib@users.noreply.github.com> Date: Fri Jun 17 06:47:17 2022 -0700 fix #1263; wrapping gcc's "sorry_at" with "rust_sorry_at" Diff: --- gcc/rust/rust-diagnostics.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h index f7a3856894b..93bd1b3237b 100644 --- a/gcc/rust/rust-diagnostics.h +++ b/gcc/rust/rust-diagnostics.h @@ -142,6 +142,11 @@ struct Error // rust_debug uses normal printf formatting, not GCC diagnostic formatting. #define rust_debug(...) rust_debug_loc (Location (), __VA_ARGS__) +// rust_sorry_at wraps GCC diagnostic "sorry_at" to accept "Location" instead of +// "location_t" +#define rust_sorry_at(location, ...) \ + sorry_at (location.gcc_location (), __VA_ARGS__) + void rust_debug_loc (const Location location, const char *fmt, ...) ATTRIBUTE_PRINTF_2;
reply other threads:[~2022-06-21 10:33 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220621103344.D36773840C15@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).