mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
Use List::empty()
instead of mk_substs(&[])
.
This commit is contained in:
parent
783b55ec82
commit
e5df17aae5
1 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ pub fn constant<'tcx>(
|
|||
typeck_results,
|
||||
param_env: lcx.param_env,
|
||||
needed_resolution: false,
|
||||
substs: lcx.tcx.mk_substs(&[]),
|
||||
substs: ty::List::empty(),
|
||||
};
|
||||
cx.expr(e).map(|cst| (cst, cx.needed_resolution))
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ pub fn constant_context<'a, 'tcx>(
|
|||
typeck_results,
|
||||
param_env: lcx.param_env,
|
||||
needed_resolution: false,
|
||||
substs: lcx.tcx.mk_substs(&[]),
|
||||
substs: ty::List::empty(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue