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> {
338338 tcx : TyCtxt < ' tcx > ,
339339 typing_env : TypingEnv < ' tcx > ,
340340 ty : Ty < ' tcx > ,
341- val : ConstValue < ' tcx > ,
341+ val : ConstValue ,
342342 ) -> Result < bool , ( ) > {
343343 let ty = tcx. try_normalize_erasing_regions ( typing_env, ty) . unwrap_or ( ty) ;
344344 match self . is_ty_freeze ( tcx, typing_env, ty) {
@@ -477,7 +477,7 @@ impl<'tcx> NonCopyConst<'tcx> {
477477 typing_env : TypingEnv < ' tcx > ,
478478 typeck : & ' tcx TypeckResults < ' tcx > ,
479479 mut src_expr : & ' tcx Expr < ' tcx > ,
480- mut val : ConstValue < ' tcx > ,
480+ mut val : ConstValue ,
481481 ) -> Result < Option < BorrowSource < ' tcx > > , ( ) > {
482482 let mut parents = tcx. hir_parent_iter ( src_expr. hir_id ) ;
483483 let mut ty = typeck. expr_ty ( src_expr) ;
You can’t perform that action at this time.
0 commit comments