diff options
| author | Andreas Liljeqvist <bonega@gmail.com> | 2021-09-05 10:59:14 +0200 |
|---|---|---|
| committer | Andreas Liljeqvist <bonega@gmail.com> | 2021-09-09 10:41:19 +0200 |
| commit | 459c9108e405e88fc23088c97d0b093e72d65b48 (patch) | |
| tree | 0b2f96c8756f65d15df59695c9e105f7d7efc758 /compiler/rustc_const_eval/src/interpret | |
| parent | 5b2f757dae374e22a7733f90af482f405bd426e9 (diff) | |
| download | rust-459c9108e405e88fc23088c97d0b093e72d65b48.tar.gz rust-459c9108e405e88fc23088c97d0b093e72d65b48.zip | |
Remove clone
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/validity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/validity.rs b/compiler/rustc_const_eval/src/interpret/validity.rs index 393c3e43b5d..bad56220a0b 100644 --- a/compiler/rustc_const_eval/src/interpret/validity.rs +++ b/compiler/rustc_const_eval/src/interpret/validity.rs @@ -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); |
