Skip to content

Commit 437ca26

Browse files
committed
Remove comment out of RFC's scope
1 parent 764f64f commit 437ca26

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_lint/src/types.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,6 @@ fn is_niche_optimization_candidate<'tcx>(
11151115
match ty.kind() {
11161116
ty::Adt(ty_def, _) => {
11171117
let non_exhaustive = ty_def.is_variant_list_non_exhaustive();
1118-
// Should single-variant enums be allowed?
11191118
let empty = (ty_def.is_struct() && ty_def.all_fields().next().is_none())
11201119
|| (ty_def.is_enum() && ty_def.variants().is_empty());
11211120

0 commit comments

Comments
 (0)