diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-12-12 21:12:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-12 21:12:19 +0100 |
| commit | 2a1acc26a0533b82faa5ab18b56cff032e6ca3f9 (patch) | |
| tree | 2f399f7d01d54bf368b492f798cad35472944da4 /compiler/rustc_pattern_analysis/src/constructor.rs | |
| parent | 6892fcd690fe252062ffc8621e2878069a1ee3d8 (diff) | |
| download | rust-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.rs | 1 |
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); } |
