Skip to content

Commit 2089886

Browse files
committed
Remove comment out of RFC's scope
1 parent d1bcfbc commit 2089886

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_lint/src/types.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,6 @@ fn is_niche_optimization_candidate<'tcx>(
10701070
match ty.kind() {
10711071
ty::Adt(ty_def, _) => {
10721072
let non_exhaustive = ty_def.is_variant_list_non_exhaustive();
1073-
// Should single-variant enums be allowed?
10741073
let empty = (ty_def.is_struct() && ty_def.all_fields().next().is_none())
10751074
|| (ty_def.is_enum() && ty_def.variants().is_empty());
10761075

0 commit comments

Comments
 (0)