Skip to content

Commit de37b3a

Browse files
committed
allow the warning
1 parent b227f23 commit de37b3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/unnested_or_patterns.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ fn transform_with_focus_on_idx(alternatives: &mut ThinVec<Box<Pat>>, focus_idx:
306306
/// In particular, for a record pattern, the order in which the field patterns is irrelevant.
307307
/// So when we fixate on some `ident_k: pat_k`, we try to find `ident_k` in the other pattern
308308
/// and check that all `fp_i` where `i ∈ ((0...n) \ k)` between two patterns are equal.
309+
#[expect(clippy::borrowed_box, reason = "required by the signature of `eq_maybe_qself`")]
309310
fn extend_with_struct_pat(
310311
qself1: Option<&Box<ast::QSelf>>,
311312
path1: &ast::Path,

0 commit comments

Comments
 (0)