Skip to content

gccrs: Add rust_debug_fmt - #4788

Merged
P-E-P merged 1 commit into
Rust-GCC:masterfrom
powerboat9:new-diag
Aug 17, 2026
Merged

P-E-P merged 1 commit into
Rust-GCC:masterfrom
powerboat9:new-diag

Conversation

@powerboat9

Copy link
Copy Markdown
Collaborator

This should allow the use of gcc diagnostic format specifiers in debug diagnostics, in exchange for stricter diagnostic quality checks.

Similar to #4783, but doesn't impose diagnostic quality checks on every rust_debug call.

This should allow the use of gcc diagnostic format specifiers in debug
diagnostics, in exchange for stricter diagnostic quality checks.

gcc/rust/ChangeLog:

	* rust-diagnostics.cc (rust_debug_fmt_at): New function
	definition.
	* rust-diagnostics.h (rust_debug_fmt): New function-like macro
	definition.
	(rust_debug_fmt_at): New function declaration.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
@P-E-P
P-E-P added this pull request to the merge queue Aug 16, 2026
Merged via the queue into Rust-GCC:master with commit 9482951 Aug 17, 2026
13 checks passed
@powerboat9
powerboat9 deleted the new-diag branch August 17, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants