Skip to content

Commit

Permalink
AssumptionNotHeld is used only once in Miri and never caught... remov…
Browse files Browse the repository at this point in the history
…e from enum
  • Loading branch information
RalfJung committed Aug 4, 2019
1 parent 18daa76 commit b9d4c75
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustc/mir/interpret/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ pub enum UndefinedBehaviorInfo {
UbExperimental(String),
/// Unreachable code was executed.
Unreachable,
/// An `assume` was run on a `false` condition,
AssumptionNotHeld,
}

impl fmt::Debug for UndefinedBehaviorInfo {
Expand All @@ -360,8 +358,6 @@ impl fmt::Debug for UndefinedBehaviorInfo {
write!(f, "{}", msg),
Unreachable =>
write!(f, "entered unreachable code"),
AssumptionNotHeld =>
write!(f, "`assume` argument was false"),
}
}
}
Expand Down

0 comments on commit b9d4c75

Please sign in to comment.