about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src/context.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-02-20 14:52:23 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-02-24 07:33:02 +1100
commit08f28f94479d09ae5f7d2cf1d3c018b714751c35 (patch)
tree96caebadb102273cb989c2208c1de98661ae56d6 /compiler/rustc_codegen_gcc/src/context.rs
parentc09f5b6a6b82f785165c68546d323011fad052c0 (diff)
downloadrust-08f28f94479d09ae5f7d2cf1d3c018b714751c35.tar.gz
rust-08f28f94479d09ae5f7d2cf1d3c018b714751c35.zip
Use `List::empty()` instead of `mk_substs(&[])`.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/context.rs')
-rw-r--r--compiler/rustc_codegen_gcc/src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/context.rs b/compiler/rustc_codegen_gcc/src/context.rs
index fc746fbd599..457006319af 100644
--- a/compiler/rustc_codegen_gcc/src/context.rs
+++ b/compiler/rustc_codegen_gcc/src/context.rs
@@ -383,7 +383,7 @@ impl<'gcc, 'tcx> MiscMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
                     tcx,
                     ty::ParamEnv::reveal_all(),
                     def_id,
-                    tcx.mk_substs(&[]),
+                    ty::List::empty(),
                 )
                 .unwrap().unwrap(),
             ),