Skip to content

Commit

Permalink
Fix inverted panic check
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Mar 26, 2019
1 parent 8b37e80 commit c1b9632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/debuginfo/type_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c1b9632

Please sign in to comment.