diff options
| author | bors <bors@rust-lang.org> | 2022-04-26 01:52:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-26 01:52:46 +0000 |
| commit | 9ea4d4127fa2c7e99d31a4a8a59227c9874d61dc (patch) | |
| tree | 13119c42117d0cb1689dda545278f629f45ade06 /compiler/rustc_errors/src | |
| parent | ec8619dca239f57201a3ceb59e93149659c07b58 (diff) | |
| parent | f0b2dccc2161a6d17effb63232b1dce885f5305e (diff) | |
| download | rust-9ea4d4127fa2c7e99d31a4a8a59227c9874d61dc.tar.gz rust-9ea4d4127fa2c7e99d31a4a8a59227c9874d61dc.zip | |
Auto merge of #96414 - Dylan-DPC:rollup-t4ofhoa, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #90312 (Fix some confusing wording and improve slice-search-related docs) - #96149 (Remove unused macro rules) - #96279 (rustdoc: Remove .woff font files) - #96355 (Better handle too many `#` recovery in raw str) - #96379 (delay bug when adjusting `NeverToAny` twice during diagnostic code) - #96384 (do not consider two extern types to be similar) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic_builder.rs | 13 |
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])* |
