diff options
| author | bors <bors@rust-lang.org> | 2024-09-29 15:52:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-29 15:52:51 +0000 |
| commit | 42ff2eedb0585e32e3e8da0e83ff82dd49987a2c (patch) | |
| tree | ae744050ea4bcea9c1591adc153aacc7dfe68898 /compiler/rustc_pattern_analysis/src | |
| parent | d194948e50e90f98c62fb64183bce4d866a665af (diff) | |
| parent | 71c96cc7d5cf4bdb21d75c48e616f8fb195b9ee1 (diff) | |
| download | rust-42ff2eedb0585e32e3e8da0e83ff82dd49987a2c.tar.gz rust-42ff2eedb0585e32e3e8da0e83ff82dd49987a2c.zip | |
Auto merge of #131022 - matthiaskrgr:rollup-g9y1v11, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #130931 (Rename `standalone` doctest attribute into `standalone_crate`) - #131000 (Weekly `cargo update`) - #131011 (cleanup: don't `.into()` identical types) - #131013 (cleanup: don't manually `unwrap_or_default()`) - #131014 (cleanup: don't clone types that are Copy) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/constructor.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs index 3cb7576154f..8fce4266345 100644 --- a/compiler/rustc_pattern_analysis/src/constructor.rs +++ b/compiler/rustc_pattern_analysis/src/constructor.rs @@ -735,10 +735,10 @@ impl<Cx: PatCx> Clone for Constructor<Cx> { Constructor::UnionField => Constructor::UnionField, Constructor::Bool(b) => Constructor::Bool(*b), Constructor::IntRange(range) => Constructor::IntRange(*range), - Constructor::F16Range(lo, hi, end) => Constructor::F16Range(lo.clone(), *hi, *end), - Constructor::F32Range(lo, hi, end) => Constructor::F32Range(lo.clone(), *hi, *end), - Constructor::F64Range(lo, hi, end) => Constructor::F64Range(lo.clone(), *hi, *end), - Constructor::F128Range(lo, hi, end) => Constructor::F128Range(lo.clone(), *hi, *end), + Constructor::F16Range(lo, hi, end) => Constructor::F16Range(*lo, *hi, *end), + Constructor::F32Range(lo, hi, end) => Constructor::F32Range(*lo, *hi, *end), + Constructor::F64Range(lo, hi, end) => Constructor::F64Range(*lo, *hi, *end), + Constructor::F128Range(lo, hi, end) => Constructor::F128Range(*lo, *hi, *end), Constructor::Str(value) => Constructor::Str(value.clone()), Constructor::Opaque(inner) => Constructor::Opaque(inner.clone()), Constructor::Or => Constructor::Or, |
