Skip to content

Commit 76430f1

Browse files
committed
fix misspelled variable name
1 parent 041fd0c commit 76430f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/builder/matches/match_pair.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
104104
}
105105

106106
fn subslice_work_optimizing(&self, subslice: &[Box<Pat<'tcx>>]) -> bool {
107-
slice.len() > 1 && subslice.iter().all(|p| self.is_constant_pattern(p))
107+
subslice.len() > 1 && subslice.iter().all(|p| self.is_constant_pattern(p))
108108
}
109109

110110
fn is_constant_pattern(&self, pat: &Pat<'tcx>) -> bool {

0 commit comments

Comments
 (0)