about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-12 21:12:19 +0100
committerGitHub <noreply@github.com>2023-12-12 21:12:19 +0100
commit2a1acc26a0533b82faa5ab18b56cff032e6ca3f9 (patch)
tree2f399f7d01d54bf368b492f798cad35472944da4 /compiler/rustc_pattern_analysis/src/constructor.rs
parent6892fcd690fe252062ffc8621e2878069a1ee3d8 (diff)
downloadrust-2a1acc26a0533b82faa5ab18b56cff032e6ca3f9.tar.gz
rust-2a1acc26a0533b82faa5ab18b56cff032e6ca3f9.zip
Update compiler/rustc_pattern_analysis/src/constructor.rs
add note that `missing_empty` is cleared now

Co-authored-by: Nadrieril <Nadrieril@users.noreply.github.com>
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
-rw-r--r--compiler/rustc_pattern_analysis/src/constructor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs
index 02039679517..3bca7894a29 100644
--- a/compiler/rustc_pattern_analysis/src/constructor.rs
+++ b/compiler/rustc_pattern_analysis/src/constructor.rs
@@ -979,6 +979,7 @@ impl ConstructorSet {
             && !(pcx.is_top_level && matches!(self, Self::NoConstructors))
         {
             // Treat all missing constructors as nonempty.
+            // This clears `missing_empty`.
             missing.append(&mut missing_empty);
         }