Remove comment out of RFC's scope

This commit is contained in:
Arvind Mukund 2024-03-18 19:48:40 -07:00
parent 764f64f0d7
commit 437ca26de5

View file

@ -1115,7 +1115,6 @@ fn is_niche_optimization_candidate<'tcx>(
match ty.kind() {
ty::Adt(ty_def, _) => {
let non_exhaustive = ty_def.is_variant_list_non_exhaustive();
// Should single-variant enums be allowed?
let empty = (ty_def.is_struct() && ty_def.all_fields().next().is_none())
|| (ty_def.is_enum() && ty_def.variants().is_empty());