Allow unreachable_patterns instead of using if true

This commit is contained in:
jumbatm 2020-04-30 09:54:26 +10:00
parent eca147896f
commit 9c898d65b8

View file

@ -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)?,
}
}};