diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-01 17:23:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-01 17:23:30 +0100 |
| commit | 87284d7e79da9eb106ba120600d4fb4767897869 (patch) | |
| tree | e163144ce7521ab42230ab14675c6e5dac29ea76 /src/librustc_codegen_llvm | |
| parent | 55d0a8b201c0b266be48723c30e4794a0068e96e (diff) | |
| parent | 56a3da3bd0e2f6b5963913e998c74266cf7cff7b (diff) | |
| download | rust-87284d7e79da9eb106ba120600d4fb4767897869.tar.gz rust-87284d7e79da9eb106ba120600d4fb4767897869.zip | |
Rollup merge of #69569 - matthiaskrgr:nonminimal_bool, r=mark-Simulacrum
simplify boolean expressions
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/metadata.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs index 6ed3153963f..3916653eb1d 100644 --- a/src/librustc_codegen_llvm/debuginfo/metadata.rs +++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs @@ -2135,7 +2135,7 @@ fn set_members_of_composite_type( /// Computes the type parameters for a type, if any, for the given metadata. fn compute_type_parameters(cx: &CodegenCx<'ll, 'tcx>, ty: Ty<'tcx>) -> Option<&'ll DIArray> { if let ty::Adt(def, substs) = ty.kind { - if !substs.types().next().is_none() { + if substs.types().next().is_some() { let generics = cx.tcx.generics_of(def.did); let names = get_parameter_names(cx, generics); let template_params: Vec<_> = substs |
