resolve todo
This commit is contained in:
parent
4c9971eb0d
commit
49e7432b00
@ -3413,7 +3413,6 @@ impl<'tcx, 'lt> ADTDef_<'tcx, 'lt> {
|
||||
|
||||
#[inline]
|
||||
pub fn is_empty(&self) -> bool {
|
||||
// FIXME(#TODO(wxyz)): be smarter here
|
||||
self.variants.is_empty()
|
||||
}
|
||||
|
||||
@ -4249,6 +4248,7 @@ impl<'tcx> TyS<'tcx> {
|
||||
}
|
||||
|
||||
pub fn is_empty(&self, _cx: &ctxt) -> bool {
|
||||
// FIXME(#24885): be smarter here
|
||||
match self.sty {
|
||||
TyEnum(def, _) | TyStruct(def, _) => def.is_empty(),
|
||||
_ => false
|
||||
|
Loading…
x
Reference in New Issue
Block a user