@@ -209,7 +209,7 @@ impl Ctx {
209209 fn lower_record_field ( & mut self , field : & ast:: RecordField ) -> Option < Field > {
210210 let name = field. name ( ) ?. as_name ( ) ;
211211 let visibility = self . lower_visibility ( field) ;
212- let type_ref = self . lower_type_ref_opt ( field. ascribed_type ( ) ) ;
212+ let type_ref = self . lower_type_ref_opt ( field. ty ( ) ) ;
213213 let res = Field { name, type_ref, visibility } ;
214214 Some ( res)
215215 }
@@ -286,7 +286,7 @@ impl Ctx {
286286 let mut has_self_param = false ;
287287 if let Some ( param_list) = func. param_list ( ) {
288288 if let Some ( self_param) = param_list. self_param ( ) {
289- let self_type = match self_param. ascribed_type ( ) {
289+ let self_type = match self_param. ty ( ) {
290290 Some ( type_ref) => TypeRef :: from_ast ( & self . body_ctx , type_ref) ,
291291 None => {
292292 let self_type = TypeRef :: Path ( name ! [ Self ] . into ( ) ) ;
@@ -305,7 +305,7 @@ impl Ctx {
305305 has_self_param = true ;
306306 }
307307 for param in param_list. params ( ) {
308- let type_ref = TypeRef :: from_ast_opt ( & self . body_ctx , param. ascribed_type ( ) ) ;
308+ let type_ref = TypeRef :: from_ast_opt ( & self . body_ctx , param. ty ( ) ) ;
309309 params. push ( type_ref) ;
310310 }
311311 }
@@ -370,7 +370,7 @@ impl Ctx {
370370
371371 fn lower_static ( & mut self , static_ : & ast:: Static ) -> Option < FileItemTreeId < Static > > {
372372 let name = static_. name ( ) ?. as_name ( ) ;
373- let type_ref = self . lower_type_ref_opt ( static_. ascribed_type ( ) ) ;
373+ let type_ref = self . lower_type_ref_opt ( static_. ty ( ) ) ;
374374 let visibility = self . lower_visibility ( static_) ;
375375 let mutable = static_. mut_token ( ) . is_some ( ) ;
376376 let ast_id = self . source_ast_id_map . ast_id ( static_) ;
@@ -380,7 +380,7 @@ impl Ctx {
380380
381381 fn lower_const ( & mut self , konst : & ast:: Const ) -> FileItemTreeId < Const > {
382382 let name = konst. name ( ) . map ( |it| it. as_name ( ) ) ;
383- let type_ref = self . lower_type_ref_opt ( konst. ascribed_type ( ) ) ;
383+ let type_ref = self . lower_type_ref_opt ( konst. ty ( ) ) ;
384384 let visibility = self . lower_visibility ( konst) ;
385385 let ast_id = self . source_ast_id_map . ast_id ( konst) ;
386386 let res = Const { name, visibility, type_ref, ast_id } ;
0 commit comments