We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b37e80 commit c1b9632Copy full SHA for c1b9632
src/librustc_codegen_llvm/debuginfo/type_names.rs
@@ -44,7 +44,7 @@ pub fn push_debuginfo_type_name<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>,
44
// Since we need to generate *something*, we just
45
// use a dummy string that should make it clear
46
// that something unusual is going on
47
- if visited.insert(t) {
+ if !visited.insert(t) {
48
output.push_str("<recursive_type>");
49
return;
50
}
0 commit comments