Skip to content

Commit e5df17a

Browse files
committed
Use List::empty() instead of mk_substs(&[]).
1 parent 783b55e commit e5df17a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/consts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub fn constant<'tcx>(
237237
typeck_results,
238238
param_env: lcx.param_env,
239239
needed_resolution: false,
240-
substs: lcx.tcx.mk_substs(&[]),
240+
substs: ty::List::empty(),
241241
};
242242
cx.expr(e).map(|cst| (cst, cx.needed_resolution))
243243
}
@@ -306,7 +306,7 @@ pub fn constant_context<'a, 'tcx>(
306306
typeck_results,
307307
param_env: lcx.param_env,
308308
needed_resolution: false,
309-
substs: lcx.tcx.mk_substs(&[]),
309+
substs: ty::List::empty(),
310310
}
311311
}
312312

0 commit comments

Comments
 (0)