We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0519a58 commit 2edaf68Copy full SHA for 2edaf68
compiler/rustc_middle/src/mir/terminator.rs
@@ -86,7 +86,7 @@ impl SwitchTargets {
86
self.iter().find_map(|(v, t)| (v == value).then_some(t)).unwrap_or_else(|| self.otherwise())
87
}
88
89
- /// Adds a new target to the switch. But You cannot add an already present value.
+ /// Adds a new target to the switch. Panics if you add an already present value.
90
#[inline]
91
pub fn add_target(&mut self, value: u128, bb: BasicBlock) {
92
let value = Pu128(value);
0 commit comments