about summary refs log tree commit diff
path: root/src
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
commitea83d6f4d83c53a7da67e995efbaba6ca394903a (patch)
tree62090501eb574fa24b7ee25c879f12de7e9ccb56 /src
parent5b0dbc47d7645b6ed12a4a81ab4daf85d1fa3a0f (diff)
downloadrust-ea83d6f4d83c53a7da67e995efbaba6ca394903a.tar.gz
rust-ea83d6f4d83c53a7da67e995efbaba6ca394903a.zip
Use `List::empty()` instead of `mk_substs(&[])`.
Diffstat (limited to 'src')
-rw-r--r--src/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.rs b/src/context.rs
index fc746fbd599..457006319af 100644
--- a/src/context.rs
+++ b/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(),
             ),