Skip to content

Commit fb86f84

Browse files
committed
nyahggdshjjghsdfhgsf
1 parent 377870a commit fb86f84

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

clippy_lints/src/escape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn is_non_trait_box(ty: Ty<'_>) -> bool {
5454
struct EscapeDelegate<'a, 'tcx> {
5555
cx: &'a LateContext<'tcx>,
5656
set: HirIdSet,
57-
trait_self_ty: Option<Ty<'a>>,
57+
trait_self_ty: Option<Ty<'tcx>>,
5858
too_large_for_stack: u64,
5959
}
6060

clippy_lints/src/non_copy_const.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,10 @@ fn is_value_unfrozen_expr<'tcx>(cx: &LateContext<'tcx>, hir_id: HirId, def_id: D
188188

189189
let result = cx.tcx.const_eval_resolve(
190190
cx.param_env,
191-
ty::Unevaluated {
192-
def: ty::WithOptConstParam::unknown(def_id),
191+
ty::Unevaluated::new(
192+
ty::WithOptConstParam::unknown(def_id),
193193
substs,
194-
promoted: None,
195-
},
194+
),
196195
None,
197196
);
198197
is_value_unfrozen_raw(cx, result, ty)

clippy_utils/src/consts.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,10 @@ impl<'a, 'tcx> ConstEvalLateContext<'a, 'tcx> {
413413
.tcx
414414
.const_eval_resolve(
415415
self.param_env,
416-
ty::Unevaluated {
417-
def: ty::WithOptConstParam::unknown(def_id),
416+
ty::Unevaluated::new(
417+
ty::WithOptConstParam::unknown(def_id),
418418
substs,
419-
promoted: None,
420-
},
419+
),
421420
None,
422421
)
423422
.ok()

0 commit comments

Comments
 (0)