]> git.lizzy.rs Git - rust.git/commitdiff
Fix inverted panic check
authorAaron Hill <aa1ronham@gmail.com>
Tue, 26 Mar 2019 23:49:14 +0000 (19:49 -0400)
committerAaron Hill <aa1ronham@gmail.com>
Mon, 1 Apr 2019 00:09:30 +0000 (20:09 -0400)
src/librustc_codegen_llvm/debuginfo/type_names.rs

index 024840a3fa8ad943bbc9f878e5b7e50de5c2f1e0..5854610256110e128177fea42e491902be63c571 100644 (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;
     }