From: Aaron Hill Date: Tue, 26 Mar 2019 23:49:14 +0000 (-0400) Subject: Fix inverted panic check X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e1837a0d1aa9fa9484bdc7f85c785c9fba6d7300;p=rust.git Fix inverted panic check --- diff --git a/src/librustc_codegen_llvm/debuginfo/type_names.rs b/src/librustc_codegen_llvm/debuginfo/type_names.rs index 024840a3fa8..58546102561 100644 --- a/src/librustc_codegen_llvm/debuginfo/type_names.rs +++ b/src/librustc_codegen_llvm/debuginfo/type_names.rs @@ -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(""); return; }