Skip to content

Commit b9d4c75

Browse files
committed
AssumptionNotHeld is used only once in Miri and never caught... remove from enum
1 parent 18daa76 commit b9d4c75

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: src/librustc/mir/interpret/error.rs

-4
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,6 @@ pub enum UndefinedBehaviorInfo {
348348
UbExperimental(String),
349349
/// Unreachable code was executed.
350350
Unreachable,
351-
/// An `assume` was run on a `false` condition,
352-
AssumptionNotHeld,
353351
}
354352

355353
impl fmt::Debug for UndefinedBehaviorInfo {
@@ -360,8 +358,6 @@ impl fmt::Debug for UndefinedBehaviorInfo {
360358
write!(f, "{}", msg),
361359
Unreachable =>
362360
write!(f, "entered unreachable code"),
363-
AssumptionNotHeld =>
364-
write!(f, "`assume` argument was false"),
365361
}
366362
}
367363
}

0 commit comments

Comments
 (0)