@@ -1683,7 +1683,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1683
1683
QPath :: Resolved ( ref maybe_qself, ref path) => {
1684
1684
let self_ty = maybe_qself. as_ref ( ) . map ( |qself| self . to_ty ( qself) . raw ) ;
1685
1685
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) )
1687
1687
}
1688
1688
QPath :: TypeRelative ( ref qself, ref segment) => {
1689
1689
let ty = self . to_ty ( qself) ;
@@ -1692,7 +1692,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1692
1692
self , hir_id, path_span, ty. raw , qself, segment, true ,
1693
1693
) ;
1694
1694
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) ;
1696
1696
let result = result. map ( |( _, kind, def_id) | ( kind, def_id) ) ;
1697
1697
1698
1698
// Write back the new resolution.
@@ -1702,7 +1702,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
1702
1702
}
1703
1703
QPath :: LangItem ( lang_item, span, id) => {
1704
1704
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) )
1706
1706
}
1707
1707
}
1708
1708
}
0 commit comments