We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75b7447 commit 2803ce0Copy full SHA for 2803ce0
compiler/rustc_mir/src/transform/const_goto.rs
@@ -85,7 +85,7 @@ impl<'a, 'tcx> Visitor<'tcx> for ConstGotoOptimizationFinder<'a, 'tcx> {
85
let found_value_idx_option = targets
86
.iter()
87
.enumerate()
88
- .find(|(_, x)| const_value == x.0)
+ .find(|(_, (value,_))| const_value == *value)
89
.map(|(idx, _)| idx);
90
91
let target_to_use_in_goto =
0 commit comments