diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-30 11:08:44 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-30 11:15:54 +0800 |
commit | 896d85e521311bbe1644598446df37f1b63fcd46 (patch) | |
tree | 699ecab4dd2b74cad26424b1623bb1d6aae2e107 /src/trans/enumerate.cpp | |
parent | a79163e59a15d813ec464118992d954f9b05bd93 (diff) | |
download | mrust-896d85e521311bbe1644598446df37f1b63fcd46.tar.gz |
Trans - Fiddling
Diffstat (limited to 'src/trans/enumerate.cpp')
-rw-r--r-- | src/trans/enumerate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trans/enumerate.cpp b/src/trans/enumerate.cpp index 37d7ab98..de2763df 100644 --- a/src/trans/enumerate.cpp +++ b/src/trans/enumerate.cpp @@ -197,6 +197,7 @@ namespace { if( active_set.find(&ty) != active_set.end() ) { // TODO: Handle recursion + DEBUG("- Type recursion with " << ty); return ; } active_set.insert( &ty ); @@ -206,10 +207,13 @@ namespace { (Infer, ), (Generic, + BUG(Span(), "Generic type hit in enumeration - " << ty); ), (ErasedType, + BUG(Span(), "ErasedType hit in enumeration - " << ty); ), (Closure, + BUG(Span(), "Closure type hit in enumeration - " << ty); ), // Nothing to do (Diverge, |