@@ -1725,16 +1725,16 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1725
1725
)
1726
1726
} else {
1727
1727
match decl. output {
1728
- FunctionRetTy :: Ty ( ref ty) => {
1728
+ FnRetTy :: Ty ( ref ty) => {
1729
1729
let context = match in_band_ty_params {
1730
1730
Some ( ( def_id, _) ) if impl_trait_return_allow => {
1731
1731
ImplTraitContext :: OpaqueTy ( Some ( def_id) , hir:: OpaqueTyOrigin :: FnReturn )
1732
1732
}
1733
1733
_ => ImplTraitContext :: disallowed ( ) ,
1734
1734
} ;
1735
- hir:: FunctionRetTy :: Return ( self . lower_ty ( ty, context) )
1735
+ hir:: FnRetTy :: Return ( self . lower_ty ( ty, context) )
1736
1736
}
1737
- FunctionRetTy :: Default ( span) => hir:: FunctionRetTy :: DefaultReturn ( span) ,
1737
+ FnRetTy :: Default ( span) => hir:: FnRetTy :: DefaultReturn ( span) ,
1738
1738
}
1739
1739
} ;
1740
1740
@@ -1781,10 +1781,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1781
1781
// `elided_lt_replacement`: replacement for elided lifetimes in the return type
1782
1782
fn lower_async_fn_ret_ty (
1783
1783
& mut self ,
1784
- output : & FunctionRetTy ,
1784
+ output : & FnRetTy ,
1785
1785
fn_def_id : DefId ,
1786
1786
opaque_ty_node_id : NodeId ,
1787
- ) -> hir:: FunctionRetTy < ' hir > {
1787
+ ) -> hir:: FnRetTy < ' hir > {
1788
1788
debug ! (
1789
1789
"lower_async_fn_ret_ty(\
1790
1790
output={:?}, \
@@ -1949,27 +1949,27 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1949
1949
// only the lifetime parameters that we must supply.
1950
1950
let opaque_ty_ref = hir:: TyKind :: Def ( hir:: ItemId { id : opaque_ty_id } , generic_args) ;
1951
1951
let opaque_ty = self . ty ( opaque_ty_span, opaque_ty_ref) ;
1952
- hir:: FunctionRetTy :: Return ( self . arena . alloc ( opaque_ty) )
1952
+ hir:: FnRetTy :: Return ( self . arena . alloc ( opaque_ty) )
1953
1953
}
1954
1954
1955
1955
/// Transforms `-> T` into `Future<Output = T>`
1956
1956
fn lower_async_fn_output_type_to_future_bound (
1957
1957
& mut self ,
1958
- output : & FunctionRetTy ,
1958
+ output : & FnRetTy ,
1959
1959
fn_def_id : DefId ,
1960
1960
span : Span ,
1961
1961
) -> hir:: GenericBound < ' hir > {
1962
1962
// Compute the `T` in `Future<Output = T>` from the return type.
1963
1963
let output_ty = match output {
1964
- FunctionRetTy :: Ty ( ty) => {
1964
+ FnRetTy :: Ty ( ty) => {
1965
1965
// Not `OpaqueTyOrigin::AsyncFn`: that's only used for the
1966
1966
// `impl Future` opaque type that `async fn` implicitly
1967
1967
// generates.
1968
1968
let context =
1969
1969
ImplTraitContext :: OpaqueTy ( Some ( fn_def_id) , hir:: OpaqueTyOrigin :: FnReturn ) ;
1970
1970
self . lower_ty ( ty, context)
1971
1971
}
1972
- FunctionRetTy :: Default ( ret_ty_span) => self . arena . alloc ( self . ty_tup ( * ret_ty_span, & [ ] ) ) ,
1972
+ FnRetTy :: Default ( ret_ty_span) => self . arena . alloc ( self . ty_tup ( * ret_ty_span, & [ ] ) ) ,
1973
1973
} ;
1974
1974
1975
1975
// "<Output = T>"
0 commit comments