Skip to content

Commit

Permalink
resolve todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Ben-Yehuda authored and arielb1 committed Aug 6, 2015
1 parent 4c9971e commit 49e7432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 49e7432

Please sign in to comment.