@@ -1683,7 +1683,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
16831683 QPath :: Resolved ( ref maybe_qself, ref path) => {
16841684 let self_ty = maybe_qself. as_ref ( ) . map ( |qself| self . to_ty ( qself) . raw ) ;
16851685 let ty = <dyn AstConv < ' _ > >:: res_to_ty ( self , self_ty, path, true ) ;
1686- ( path. res , self . create_raw_ty ( path_span, ty) )
1686+ ( path. res , self . handle_raw_ty ( path_span, ty) )
16871687 }
16881688 QPath :: TypeRelative ( ref qself, ref segment) => {
16891689 let ty = self . to_ty ( qself) ;
@@ -1692,7 +1692,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
16921692 self , hir_id, path_span, ty. raw , qself, segment, true ,
16931693 ) ;
16941694 let ty = result. map ( |( ty, _, _) | ty) . unwrap_or_else ( |_| self . tcx ( ) . ty_error ( ) ) ;
1695- let ty = self . create_raw_ty ( path_span, ty) ;
1695+ let ty = self . handle_raw_ty ( path_span, ty) ;
16961696 let result = result. map ( |( _, kind, def_id) | ( kind, def_id) ) ;
16971697
16981698 // Write back the new resolution.
@@ -1702,7 +1702,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
17021702 }
17031703 QPath :: LangItem ( lang_item, span, id) => {
17041704 let ( res, ty) = self . resolve_lang_item_path ( lang_item, span, hir_id, id) ;
1705- ( res, self . create_raw_ty ( path_span, ty) )
1705+ ( res, self . handle_raw_ty ( path_span, ty) )
17061706 }
17071707 }
17081708 }
0 commit comments