mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Rollup merge of #97794 - eltociear:patch-13, r=matthiaskrgr
Fix typo in redundant_pattern_match.rs alway -> always
This commit is contained in:
commit
c1dcfd175e
@ -70,7 +70,7 @@ fn temporaries_need_ordered_drop<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// the base type is alway taken by reference.
|
// the base type is always taken by reference.
|
||||||
// e.g. In `(vec![0])[0]` the vector is a temporary value.
|
// e.g. In `(vec![0])[0]` the vector is a temporary value.
|
||||||
ExprKind::Index(base, index) => {
|
ExprKind::Index(base, index) => {
|
||||||
if !matches!(base.kind, ExprKind::Path(_)) {
|
if !matches!(base.kind, ExprKind::Path(_)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user