diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2015-08-06 01:32:04 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2015-08-06 16:54:44 +0300 |
| commit | 49e7432b000424aba7bd0fc82f338f2d7f8570f8 (patch) | |
| tree | 4b601d237eefa6a25afcffbcc448bfacd3af527d | |
| parent | 4c9971eb0d3235888b1f7086fa12051fce509fe7 (diff) | |
| download | rust-49e7432b000424aba7bd0fc82f338f2d7f8570f8.tar.gz rust-49e7432b000424aba7bd0fc82f338f2d7f8570f8.zip | |
resolve todo
| -rw-r--r-- | src/librustc/middle/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index b817dca1212..9d339aef250 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -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 |
