@@ -1723,16 +1723,16 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
17231723 )
17241724 } else {
17251725 match decl. output {
1726- FunctionRetTy :: Ty ( ref ty) => {
1726+ FnRetTy :: Ty ( ref ty) => {
17271727 let context = match in_band_ty_params {
17281728 Some ( ( def_id, _) ) if impl_trait_return_allow => {
17291729 ImplTraitContext :: OpaqueTy ( Some ( def_id) , hir:: OpaqueTyOrigin :: FnReturn )
17301730 }
17311731 _ => ImplTraitContext :: disallowed ( ) ,
17321732 } ;
1733- hir:: FunctionRetTy :: Return ( self . lower_ty ( ty, context) )
1733+ hir:: FnRetTy :: Return ( self . lower_ty ( ty, context) )
17341734 }
1735- FunctionRetTy :: Default ( span) => hir:: FunctionRetTy :: DefaultReturn ( span) ,
1735+ FnRetTy :: Default ( span) => hir:: FnRetTy :: DefaultReturn ( span) ,
17361736 }
17371737 } ;
17381738
@@ -1779,10 +1779,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
17791779 // `elided_lt_replacement`: replacement for elided lifetimes in the return type
17801780 fn lower_async_fn_ret_ty (
17811781 & mut self ,
1782- output : & FunctionRetTy ,
1782+ output : & FnRetTy ,
17831783 fn_def_id : DefId ,
17841784 opaque_ty_node_id : NodeId ,
1785- ) -> hir:: FunctionRetTy < ' hir > {
1785+ ) -> hir:: FnRetTy < ' hir > {
17861786 debug ! (
17871787 "lower_async_fn_ret_ty(\
17881788 output={:?}, \
@@ -1947,27 +1947,27 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
19471947 // only the lifetime parameters that we must supply.
19481948 let opaque_ty_ref = hir:: TyKind :: Def ( hir:: ItemId { id : opaque_ty_id } , generic_args) ;
19491949 let opaque_ty = self . ty ( opaque_ty_span, opaque_ty_ref) ;
1950- hir:: FunctionRetTy :: Return ( self . arena . alloc ( opaque_ty) )
1950+ hir:: FnRetTy :: Return ( self . arena . alloc ( opaque_ty) )
19511951 }
19521952
19531953 /// Transforms `-> T` into `Future<Output = T>`
19541954 fn lower_async_fn_output_type_to_future_bound (
19551955 & mut self ,
1956- output : & FunctionRetTy ,
1956+ output : & FnRetTy ,
19571957 fn_def_id : DefId ,
19581958 span : Span ,
19591959 ) -> hir:: GenericBound < ' hir > {
19601960 // Compute the `T` in `Future<Output = T>` from the return type.
19611961 let output_ty = match output {
1962- FunctionRetTy :: Ty ( ty) => {
1962+ FnRetTy :: Ty ( ty) => {
19631963 // Not `OpaqueTyOrigin::AsyncFn`: that's only used for the
19641964 // `impl Future` opaque type that `async fn` implicitly
19651965 // generates.
19661966 let context =
19671967 ImplTraitContext :: OpaqueTy ( Some ( fn_def_id) , hir:: OpaqueTyOrigin :: FnReturn ) ;
19681968 self . lower_ty ( ty, context)
19691969 }
1970- FunctionRetTy :: Default ( ret_ty_span) => self . arena . alloc ( self . ty_tup ( * ret_ty_span, & [ ] ) ) ,
1970+ FnRetTy :: Default ( ret_ty_span) => self . arena . alloc ( self . ty_tup ( * ret_ty_span, & [ ] ) ) ,
19711971 } ;
19721972
19731973 // "<Output = T>"
0 commit comments