mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +00:00
Change the assert
in is_useful
to a debug_assert
.
It's hot in the `match-stress-enum` benchmark.
This commit is contained in:
parent
68568dcb8f
commit
580d357b5a
@ -797,7 +797,7 @@ fn is_useful<'p, 'tcx>(
|
||||
return ret;
|
||||
}
|
||||
|
||||
assert!(rows.iter().all(|r| r.len() == v.len()));
|
||||
debug_assert!(rows.iter().all(|r| r.len() == v.len()));
|
||||
|
||||
let ty = v.head().ty();
|
||||
let is_non_exhaustive = cx.is_foreign_non_exhaustive_enum(ty);
|
||||
|
Loading…
Reference in New Issue
Block a user