File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -930,7 +930,7 @@ pub struct Local {
930
930
#[ derive( Clone , RustcEncodable , RustcDecodable , Debug ) ]
931
931
pub struct Arm {
932
932
pub attrs : Vec < Attribute > ,
933
- pub pats : Vec < P < Pat > > ,
933
+ pub pat : P < Pat > ,
934
934
pub guard : Option < P < Expr > > ,
935
935
pub body : P < Expr > ,
936
936
pub span : Span ,
@@ -1148,12 +1148,12 @@ pub enum ExprKind {
1148
1148
Cast ( P < Expr > , P < Ty > ) ,
1149
1149
/// A type ascription (e.g., `42: usize`).
1150
1150
Type ( P < Expr > , P < Ty > ) ,
1151
- /// A `let pats = expr` expression that is only semantically allowed in the condition
1151
+ /// A `let pat = expr` expression that is only semantically allowed in the condition
1152
1152
/// of `if` / `while` expressions. (e.g., `if let 0 = x { .. }`).
1153
1153
///
1154
1154
/// The `Vec<P<Pat>>` is for or-patterns at the top level.
1155
1155
/// FIXME(54883): Change this to just `P<Pat>`.
1156
- Let ( Vec < P < Pat > > , P < Expr > ) ,
1156
+ Let ( P < Pat > , P < Expr > ) ,
1157
1157
/// An `if` block, with an optional `else` block.
1158
1158
///
1159
1159
/// `if expr { block } else { expr }`
You can’t perform that action at this time.
0 commit comments