Remove comment out of RFC's scope
This commit is contained in:
parent
764f64f0d7
commit
437ca26de5
1 changed files with 0 additions and 1 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue