aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-diagnostics.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-diagnostics.h')
-rw-r--r--gcc/rust/rust-diagnostics.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h
index 6c179f9..024593d 100644
--- a/gcc/rust/rust-diagnostics.h
+++ b/gcc/rust/rust-diagnostics.h
@@ -127,14 +127,10 @@ struct Error
} // namespace Rust
// rust_debug uses normal printf formatting, not GCC diagnostic formatting.
-void
-rust_debug (const Location location, const char *fmt, ...) ATTRIBUTE_PRINTF_2;
+#define rust_debug(...) rust_debug_loc (Location (), __VA_ARGS__)
-template <typename... Args>
-inline void
-rust_debug (const char *fmt, Args... args)
-{
- rust_debug (Location (), fmt, args...);
-}
+void
+rust_debug_loc (const Location location, const char *fmt,
+ ...) ATTRIBUTE_PRINTF_2;
#endif // !defined(RUST_DIAGNOSTICS_H)