Skip to content

Commit aea6614

Browse files
author
Ariel Ben-Yehuda
committed
resolve todo
1 parent 6482253 commit aea6614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3414,7 +3414,6 @@ impl<'tcx, 'lt> ADTDef_<'tcx, 'lt> {
34143414

34153415
#[inline]
34163416
pub fn is_empty(&self) -> bool {
3417-
// FIXME(#TODO(wxyz)): be smarter here
34183417
self.variants.is_empty()
34193418
}
34203419

@@ -4250,6 +4249,7 @@ impl<'tcx> TyS<'tcx> {
42504249
}
42514250

42524251
pub fn is_empty(&self, _cx: &ctxt) -> bool {
4252+
// FIXME(#24885): be smarter here
42534253
match self.sty {
42544254
TyEnum(def, _) | TyStruct(def, _) => def.is_empty(),
42554255
_ => false

0 commit comments

Comments
 (0)