We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f081f commit 39809c5Copy full SHA for 39809c5
compiler/rustc_transmute/src/layout/tree.rs
@@ -1,4 +1,5 @@
1
use super::{Byte, Def, Ref};
2
+use std::ops::ControlFlow;
3
4
#[cfg(test)]
5
mod tests;
@@ -90,13 +91,13 @@ where
90
91
Tree::unit(),
92
|elts, elt| {
93
if elt == Tree::uninhabited() {
- Err(Tree::uninhabited())
94
+ ControlFlow::Break(Tree::uninhabited())
95
} else {
- Ok(elts.then(elt))
96
+ ControlFlow::Continue(elts.then(elt))
97
}
98
},
99
) {
- Err(node) | Ok(node) => node,
100
+ ControlFlow::Break(node) | ControlFlow::Continue(node) => node,
101
102
Self::Alt(alts) => alts
103
.into_iter()
0 commit comments