@@ -909,26 +909,21 @@ impl<'tcx> TyCtxt<'tcx> {
909
909
910
910
impl < ' tcx > TyCtxt < ' tcx > {
911
911
#[ instrument( level = "trace" , skip( self ) , ret) ]
912
- pub fn create_expansion ( self , expn_data : ExpnData ) -> LocalExpnId {
912
+ pub fn create_expn ( self , expn_data : ExpnData ) -> LocalExpnId {
913
913
tls:: with_related_context ( self , |icx| {
914
914
let CurrentDepNode :: Regular { dep_node, expn_disambiguators } = icx. current_node else {
915
915
bug ! ( "creating an expansion outside of a query" )
916
916
} ;
917
917
self . with_stable_hashing_context ( |ctx| {
918
- LocalExpnId :: create_untracked_expansion (
919
- expn_data,
920
- dep_node,
921
- ctx,
922
- & expn_disambiguators,
923
- )
918
+ LocalExpnId :: create_untracked_expn ( expn_data, dep_node, ctx, & expn_disambiguators)
924
919
} )
925
920
} )
926
921
}
927
922
928
923
/// Fill an empty expansion. This method must not be used outside of the resolver.
929
924
#[ inline]
930
925
#[ instrument( level = "trace" , skip( self ) ) ]
931
- pub fn finalize_expansion ( self , expn_id : LocalExpnId , expn_data : ExpnData ) {
926
+ pub fn finalize_expn ( self , expn_id : LocalExpnId , expn_data : ExpnData ) {
932
927
tls:: with_related_context ( self , |icx| {
933
928
let CurrentDepNode :: Regular { dep_node, expn_disambiguators } = icx. current_node else {
934
929
bug ! ( "creating an expansion outside of a query" )
@@ -951,7 +946,7 @@ impl<'tcx> TyCtxt<'tcx> {
951
946
let mut expn_data =
952
947
ExpnData :: default ( ExpnKind :: Desugaring ( reason) , span, edition, None , None ) ;
953
948
expn_data. allow_internal_unstable = allow_internal_unstable;
954
- let expn_id = self . create_expansion ( expn_data) ;
949
+ let expn_id = self . create_expn ( expn_data) ;
955
950
span. fresh_expansion ( expn_id)
956
951
}
957
952
}
0 commit comments