Fix incorrect inlining of RangeInclusive::size_hint
This commit is contained in:
parent
b25c84510d
commit
2d73d30a3c
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ pub trait LayoutCalculator {
|
||||||
..=all_indices.rev().find(|v| needs_disc(*v)).unwrap();
|
..=all_indices.rev().find(|v| needs_disc(*v)).unwrap();
|
||||||
|
|
||||||
let count =
|
let count =
|
||||||
niche_variants.end().index() as u128 - niche_variants.start().index() as u128;
|
(niche_variants.end().index() as u128 - niche_variants.start().index() as u128) + 1;
|
||||||
|
|
||||||
// Find the field with the largest niche
|
// Find the field with the largest niche
|
||||||
let (field_index, niche, (niche_start, niche_scalar)) = variants[largest_variant_index]
|
let (field_index, niche, (niche_start, niche_scalar)) = variants[largest_variant_index]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue