pub mod cx;
pub mod pattern;
-pub use self::pattern::{BindingMode, Pattern, PatternKind, FieldPattern};
+pub use self::pattern::{BindingMode, Pattern, PatternKind, PatternTypeAnnotation, FieldPattern};
mod util;
PlaceTypeAscription {
source: ExprRef<'tcx>,
/// Type that the user gave to this expression
- user_ty: UserTypeAnnotation<'tcx>,
+ user_ty: Option<UserTypeAnnotation<'tcx>>,
},
ValueTypeAscription {
source: ExprRef<'tcx>,
/// Type that the user gave to this expression
- user_ty: UserTypeAnnotation<'tcx>,
+ user_ty: Option<UserTypeAnnotation<'tcx>>,
},
Closure {
closure_id: DefId,