Allow unreachable_patterns instead of using if true
This commit is contained in:
parent
eca147896f
commit
9c898d65b8
1 changed files with 2 additions and 1 deletions
|
|
@ -59,7 +59,8 @@ macro_rules! try_validation_pat {
|
|||
Ok(x) => x,
|
||||
// We catch the error and turn it into a validation failure. We are okay with
|
||||
// allocation here as this can only slow down builds that fail anyway.
|
||||
$( Err(InterpErrorInfo { kind: $p, .. }) )|* if true => throw_validation_failure!($what, $where $(, $details)?),
|
||||
$( Err(InterpErrorInfo { kind: $p, .. }) )|* => throw_validation_failure!($what, $where $(, $details)?),
|
||||
#[allow(unreachable_patterns)]
|
||||
Err(e) => Err::<!, _>(e)?,
|
||||
}
|
||||
}};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue