Fix inverted panic check

This commit is contained in:
Aaron Hill 2019-03-26 19:49:14 -04:00
parent 512069f8e5
commit e1837a0d1a
No known key found for this signature in database
GPG key ID: B4087E510E98B164

View file

@ -44,7 +44,7 @@ pub fn push_debuginfo_type_name<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>,
// Since we need to generate *something*, we just
// use a dummy string that should make it clear
// that something unusual is going on
if visited.insert(t) {
if !visited.insert(t) {
output.push_str("<recursive_type>");
return;
}