Skip to content

Commit c1b9632

Browse files
committed
Fix inverted panic check
1 parent 8b37e80 commit c1b9632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_codegen_llvm/debuginfo/type_names.rs

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

0 commit comments

Comments
 (0)