about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/diagnostic_impls.rs
diff options
context:
space:
mode:
authorNadrieril <nadrieril+git@gmail.com>2024-03-20 19:49:20 +0100
committerNadrieril <nadrieril+git@gmail.com>2024-08-10 12:07:17 +0200
commitc256de2253315d4668c417291b9ea5115b49667c (patch)
tree473222fda0d2f45c4c63bfe629f8eb1798de072e /compiler/rustc_errors/src/diagnostic_impls.rs
parent99468bb7609ad5f598ef105860ceb32bc1b95074 (diff)
downloadrust-c256de2253315d4668c417291b9ea5115b49667c.tar.gz
rust-c256de2253315d4668c417291b9ea5115b49667c.zip
Update std and compiler
Diffstat (limited to 'compiler/rustc_errors/src/diagnostic_impls.rs')
-rw-r--r--compiler/rustc_errors/src/diagnostic_impls.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/diagnostic_impls.rs b/compiler/rustc_errors/src/diagnostic_impls.rs
index 3e22786a01f..9e3bc3e60b1 100644
--- a/compiler/rustc_errors/src/diagnostic_impls.rs
+++ b/compiler/rustc_errors/src/diagnostic_impls.rs
@@ -66,6 +66,7 @@ macro_rules! into_diag_arg_for_number {
             impl IntoDiagArg for $ty {
                 fn into_diag_arg(self) -> DiagArgValue {
                     // Convert to a string if it won't fit into `Number`.
+                    #[allow(irrefutable_let_patterns)]
                     if let Ok(n) = TryInto::<i32>::try_into(self) {
                         DiagArgValue::Number(n)
                     } else {