File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ impl<'tcx> NonCopyConst<'tcx> {
338
338
tcx : TyCtxt < ' tcx > ,
339
339
typing_env : TypingEnv < ' tcx > ,
340
340
ty : Ty < ' tcx > ,
341
- val : ConstValue < ' tcx > ,
341
+ val : ConstValue ,
342
342
) -> Result < bool , ( ) > {
343
343
let ty = tcx. try_normalize_erasing_regions ( typing_env, ty) . unwrap_or ( ty) ;
344
344
match self . is_ty_freeze ( tcx, typing_env, ty) {
@@ -477,7 +477,7 @@ impl<'tcx> NonCopyConst<'tcx> {
477
477
typing_env : TypingEnv < ' tcx > ,
478
478
typeck : & ' tcx TypeckResults < ' tcx > ,
479
479
mut src_expr : & ' tcx Expr < ' tcx > ,
480
- mut val : ConstValue < ' tcx > ,
480
+ mut val : ConstValue ,
481
481
) -> Result < Option < BorrowSource < ' tcx > > , ( ) > {
482
482
let mut parents = tcx. hir_parent_iter ( src_expr. hir_id ) ;
483
483
let mut ty = typeck. expr_ty ( src_expr) ;
You can’t perform that action at this time.
0 commit comments