@@ -594,10 +594,10 @@ impl ReferenceType {
594594 pub fn ty ( & self ) -> Option < Type > { support:: child ( & self . syntax ) }
595595}
596596#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
597- pub struct PlaceholderType {
597+ pub struct InferType {
598598 pub ( crate ) syntax : SyntaxNode ,
599599}
600- impl PlaceholderType {
600+ impl InferType {
601601 pub fn underscore_token ( & self ) -> Option < SyntaxToken > { support:: token ( & self . syntax , T ! [ _] ) }
602602}
603603#[ derive( Debug , Clone , PartialEq , Eq , Hash ) ]
@@ -1291,7 +1291,7 @@ pub enum Type {
12911291 ArrayType ( ArrayType ) ,
12921292 SliceType ( SliceType ) ,
12931293 ReferenceType ( ReferenceType ) ,
1294- PlaceholderType ( PlaceholderType ) ,
1294+ InferType ( InferType ) ,
12951295 FnPointerType ( FnPointerType ) ,
12961296 ForType ( ForType ) ,
12971297 ImplTraitType ( ImplTraitType ) ,
@@ -1988,8 +1988,8 @@ impl AstNode for ReferenceType {
19881988 }
19891989 fn syntax ( & self ) -> & SyntaxNode { & self . syntax }
19901990}
1991- impl AstNode for PlaceholderType {
1992- fn can_cast ( kind : SyntaxKind ) -> bool { kind == PLACEHOLDER_TYPE }
1991+ impl AstNode for InferType {
1992+ fn can_cast ( kind : SyntaxKind ) -> bool { kind == INFER_TYPE }
19931993 fn cast ( syntax : SyntaxNode ) -> Option < Self > {
19941994 if Self :: can_cast ( syntax. kind ( ) ) {
19951995 Some ( Self { syntax } )
@@ -2871,8 +2871,8 @@ impl From<SliceType> for Type {
28712871impl From < ReferenceType > for Type {
28722872 fn from ( node : ReferenceType ) -> Type { Type :: ReferenceType ( node) }
28732873}
2874- impl From < PlaceholderType > for Type {
2875- fn from ( node : PlaceholderType ) -> Type { Type :: PlaceholderType ( node) }
2874+ impl From < InferType > for Type {
2875+ fn from ( node : InferType ) -> Type { Type :: InferType ( node) }
28762876}
28772877impl From < FnPointerType > for Type {
28782878 fn from ( node : FnPointerType ) -> Type { Type :: FnPointerType ( node) }
@@ -2890,7 +2890,7 @@ impl AstNode for Type {
28902890 fn can_cast ( kind : SyntaxKind ) -> bool {
28912891 match kind {
28922892 PAREN_TYPE | TUPLE_TYPE | NEVER_TYPE | PATH_TYPE | POINTER_TYPE | ARRAY_TYPE
2893- | SLICE_TYPE | REFERENCE_TYPE | PLACEHOLDER_TYPE | FN_POINTER_TYPE | FOR_TYPE
2893+ | SLICE_TYPE | REFERENCE_TYPE | INFER_TYPE | FN_POINTER_TYPE | FOR_TYPE
28942894 | IMPL_TRAIT_TYPE | DYN_TRAIT_TYPE => true ,
28952895 _ => false ,
28962896 }
@@ -2905,7 +2905,7 @@ impl AstNode for Type {
29052905 ARRAY_TYPE => Type :: ArrayType ( ArrayType { syntax } ) ,
29062906 SLICE_TYPE => Type :: SliceType ( SliceType { syntax } ) ,
29072907 REFERENCE_TYPE => Type :: ReferenceType ( ReferenceType { syntax } ) ,
2908- PLACEHOLDER_TYPE => Type :: PlaceholderType ( PlaceholderType { syntax } ) ,
2908+ INFER_TYPE => Type :: InferType ( InferType { syntax } ) ,
29092909 FN_POINTER_TYPE => Type :: FnPointerType ( FnPointerType { syntax } ) ,
29102910 FOR_TYPE => Type :: ForType ( ForType { syntax } ) ,
29112911 IMPL_TRAIT_TYPE => Type :: ImplTraitType ( ImplTraitType { syntax } ) ,
@@ -2924,7 +2924,7 @@ impl AstNode for Type {
29242924 Type :: ArrayType ( it) => & it. syntax ,
29252925 Type :: SliceType ( it) => & it. syntax ,
29262926 Type :: ReferenceType ( it) => & it. syntax ,
2927- Type :: PlaceholderType ( it) => & it. syntax ,
2927+ Type :: InferType ( it) => & it. syntax ,
29282928 Type :: FnPointerType ( it) => & it. syntax ,
29292929 Type :: ForType ( it) => & it. syntax ,
29302930 Type :: ImplTraitType ( it) => & it. syntax ,
@@ -3719,7 +3719,7 @@ impl std::fmt::Display for ReferenceType {
37193719 std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
37203720 }
37213721}
3722- impl std:: fmt:: Display for PlaceholderType {
3722+ impl std:: fmt:: Display for InferType {
37233723 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
37243724 std:: fmt:: Display :: fmt ( self . syntax ( ) , f)
37253725 }
0 commit comments