Remove clone
This commit is contained in:
parent
5b2f757dae
commit
459c9108e4
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
|
|||
return Ok(());
|
||||
}
|
||||
// At least one value is excluded.
|
||||
let valid_range = scalar_layout.valid_range.clone();
|
||||
let valid_range = scalar_layout.valid_range;
|
||||
let WrappingRange { start, end } = valid_range;
|
||||
let max_value = u128::MAX >> (128 - op.layout.size.bits());
|
||||
assert!(end <= max_value);
|
||||
|
|
Loading…
Add table
Reference in a new issue