Skip to content

Commit 49e7432

Browse files
Ariel Ben-Yehudaarielb1
authored andcommitted
resolve todo
1 parent 4c9971e commit 49e7432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,6 @@ impl<'tcx, 'lt> ADTDef_<'tcx, 'lt> {
34133413

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

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

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

0 commit comments

Comments
 (0)