about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-02-07 16:06:31 +0100
committerlcnr <rust@lcnr.de>2022-02-21 07:09:11 +0100
commit1245131a118ee08a38cfd3a90952a0168d65cae2 (patch)
treeec9618eef558e0a8f4c43e81fc3cb7bd07dbe928 /compiler/rustc_codegen_llvm
parenta9c1ab82f5f58a8459fc5f1f2d13021e80f23421 (diff)
downloadrust-1245131a118ee08a38cfd3a90952a0168d65cae2.tar.gz
rust-1245131a118ee08a38cfd3a90952a0168d65cae2.zip
use `List<Ty<'tcx>>` for tuples
Diffstat (limited to 'compiler/rustc_codegen_llvm')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
index fd1e61f2b8a..ef87b7b1a7e 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs
@@ -752,9 +752,8 @@ pub fn type_metadata<'ll, 'tcx>(cx: &CodegenCx<'ll, 'tcx>, t: Ty<'tcx>) -> &'ll
                 prepare_enum_metadata(cx, t, def.did, unique_type_id, vec![]).finalize(cx)
             }
         },
-        ty::Tuple(elements) => {
-            let tys: Vec<_> = elements.iter().map(|k| k.expect_ty()).collect();
-            prepare_tuple_metadata(cx, t, &tys, unique_type_id, NO_SCOPE_METADATA).finalize(cx)
+        ty::Tuple(tys) => {
+            prepare_tuple_metadata(cx, t, tys, unique_type_id, NO_SCOPE_METADATA).finalize(cx)
         }
         // Type parameters from polymorphized functions.
         ty::Param(_) => MetadataCreationResult::new(param_type_metadata(cx, t), false),