diff --git a/sqlx-macros-core/src/query/args.rs b/sqlx-macros-core/src/query/args.rs index 0eadd4dc9b..01611fbb4e 100644 --- a/sqlx-macros-core/src/query/args.rs +++ b/sqlx-macros-core/src/query/args.rs @@ -89,7 +89,9 @@ pub fn quote_args( _ty_check = match_borrow.match_borrow(); // this causes move-analysis to effectively ignore this block - ::std::panic!(); + // `panic!` would be enough here but we would then get a warning on `clippy::missing_panics_doc` + // SAFETY: this branch is never reached. + unsafe { ::std::hint::unreachable_unchecked() } } )) })