about summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2022-04-17 14:18:08 +0200
committerest31 <MTest31@outlook.com>2022-04-18 23:28:06 +0200
commit3c1e1661e7dbb5b0eb98f4f389878b3ed16f5171 (patch)
tree1da8639cc1a8a4e87941edbfc0c1723e25ede15f /compiler/rustc_errors
parent8305398d7ae6128811ec2b3223939bcd067530c2 (diff)
downloadrust-3c1e1661e7dbb5b0eb98f4f389878b3ed16f5171.tar.gz
rust-3c1e1661e7dbb5b0eb98f4f389878b3ed16f5171.zip
Remove unused macro rules
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/diagnostic_builder.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_builder.rs b/compiler/rustc_errors/src/diagnostic_builder.rs
index 74e0f742946..d2180408477 100644
--- a/compiler/rustc_errors/src/diagnostic_builder.rs
+++ b/compiler/rustc_errors/src/diagnostic_builder.rs
@@ -255,19 +255,6 @@ impl EmissionGuarantee for ! {
 /// instead of a `&DiagnosticBuilder<'a>`. This `forward!` macro makes
 /// it easy to declare such methods on the builder.
 macro_rules! forward {
-    // Forward pattern for &self -> &Self
-    (
-        $(#[$attrs:meta])*
-        pub fn $n:ident(&self, $($name:ident: $ty:ty),* $(,)?) -> &Self
-    ) => {
-        $(#[$attrs])*
-        #[doc = concat!("See [`Diagnostic::", stringify!($n), "()`].")]
-        pub fn $n(&self, $($name: $ty),*) -> &Self {
-            self.diagnostic.$n($($name),*);
-            self
-        }
-    };
-
     // Forward pattern for &mut self -> &mut Self
     (
         $(#[$attrs:meta])*