about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-19 05:07:32 +0000
committerbors <bors@rust-lang.org>2023-12-19 05:07:32 +0000
commitf36251f689c470aaa81c31710b96fc3e51029852 (patch)
tree5abaccd88ccb2f5852113cbbb76418387134d508 /compiler/rustc_pattern_analysis/src
parent1929606c3e31385719253c21be0360a51c787161 (diff)
parent0f70ced1280124e2078ec5838ac173c13f400e2e (diff)
downloadrust-f36251f689c470aaa81c31710b96fc3e51029852.tar.gz
rust-f36251f689c470aaa81c31710b96fc3e51029852.zip
Auto merge of #3232 - rust-lang:rustup-2023-12-19, r=saethlin
Automatic Rustup
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
-rw-r--r--compiler/rustc_pattern_analysis/src/constructor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs
index 3bca7894a29..6486ad8b483 100644
--- a/compiler/rustc_pattern_analysis/src/constructor.rs
+++ b/compiler/rustc_pattern_analysis/src/constructor.rs
@@ -923,7 +923,7 @@ impl ConstructorSet {
             }
             ConstructorSet::Integers { range_1, range_2 } => {
                 let seen_ranges: Vec<_> =
-                    seen.iter().map(|ctor| ctor.as_int_range().unwrap().clone()).collect();
+                    seen.iter().map(|ctor| *ctor.as_int_range().unwrap()).collect();
                 for (seen, splitted_range) in range_1.split(seen_ranges.iter().cloned()) {
                     match seen {
                         Presence::Unseen => missing.push(IntRange(splitted_range)),