Skip to content

Commit 42361da

Browse files
committed
Auto merge of rust-lang#98559 - jackh726:remove-reempty, r=oli-obk
Remove ReEmpty r? rust-lang/types
2 parents 98bf99e + b640eaa commit 42361da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_pass_by_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl<'tcx> LateLintPass<'tcx> for NeedlessPassByValue {
173173
(
174174
preds.iter().any(|t| cx.tcx.is_diagnostic_item(sym::Borrow, t.def_id())),
175175
!preds.is_empty() && {
176-
let ty_empty_region = cx.tcx.mk_imm_ref(cx.tcx.lifetimes.re_root_empty, ty);
176+
let ty_empty_region = cx.tcx.mk_imm_ref(cx.tcx.lifetimes.re_erased, ty);
177177
preds.iter().all(|t| {
178178
let ty_params = t.trait_ref.substs.iter().skip(1).collect::<Vec<_>>();
179179
implements_trait(cx, ty_empty_region, t.def_id(), &ty_params)

0 commit comments

Comments
 (0)