We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
List::empty()
mk_substs(&[])
1 parent 783b55e commit e5df17aCopy full SHA for e5df17a
clippy_utils/src/consts.rs
@@ -237,7 +237,7 @@ pub fn constant<'tcx>(
237
typeck_results,
238
param_env: lcx.param_env,
239
needed_resolution: false,
240
- substs: lcx.tcx.mk_substs(&[]),
+ substs: ty::List::empty(),
241
};
242
cx.expr(e).map(|cst| (cst, cx.needed_resolution))
243
}
@@ -306,7 +306,7 @@ pub fn constant_context<'a, 'tcx>(
306
307
308
309
310
311
312
0 commit comments