resolve todo

This commit is contained in:
Ariel Ben-Yehuda 2015-08-06 01:32:04 +03:00 committed by Ariel Ben-Yehuda
parent 4c9971eb0d
commit 49e7432b00

View File

@ -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