diff options
| author | The Miri Conjob Bot <miri@cron.bot> | 2024-02-22 05:02:05 +0000 |
|---|---|---|
| committer | The Miri Conjob Bot <miri@cron.bot> | 2024-02-22 05:02:05 +0000 |
| commit | 76a596c48d1b8ed3805e623e003c73edaf00c5fc (patch) | |
| tree | d455bd062e68808928fdbdd46ff10e38d5c4575e /compiler/rustc_borrowck/src/lib.rs | |
| parent | f5ec4cb37561743efd869d61e457ae39938c1680 (diff) | |
| parent | c5f69bdd5173a948e0131f934fa7c4cbf5e0b55f (diff) | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_borrowck/src/lib.rs')
| -rw-r--r-- | compiler/rustc_borrowck/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_borrowck/src/lib.rs b/compiler/rustc_borrowck/src/lib.rs index 6c2a511538d..dbaa9e5bcfa 100644 --- a/compiler/rustc_borrowck/src/lib.rs +++ b/compiler/rustc_borrowck/src/lib.rs @@ -2497,6 +2497,8 @@ mod diags { } for (_, (mut diag, count)) in std::mem::take(&mut self.diags.buffered_mut_errors) { if count > 10 { + #[allow(rustc::diagnostic_outside_of_impl)] + #[allow(rustc::untranslatable_diagnostic)] diag.note(format!("...and {} other attempted mutable borrows", count - 10)); } self.diags.buffered_diags.push(BufferedDiag::Error(diag)); |
