adressed @eddyb's comments
This commit is contained in:
parent
ad7d7eaba3
commit
5de684adf6
@ -919,7 +919,7 @@ pub enum Expr_ {
|
|||||||
/// Inline assembly (from `asm!`), with its outputs and inputs.
|
/// Inline assembly (from `asm!`), with its outputs and inputs.
|
||||||
ExprInlineAsm(InlineAsm, Vec<P<Expr>>, Vec<P<Expr>>),
|
ExprInlineAsm(InlineAsm, Vec<P<Expr>>, Vec<P<Expr>>),
|
||||||
|
|
||||||
/// A struct or enum variant literal expression.
|
/// A struct or struct-like variant literal expression.
|
||||||
///
|
///
|
||||||
/// For example, `Foo {x: 1, y: 2}`, or
|
/// For example, `Foo {x: 1, y: 2}`, or
|
||||||
/// `Foo {x: 1, .. base}`, where `base` is the `Option<Expr>`.
|
/// `Foo {x: 1, .. base}`, where `base` is the `Option<Expr>`.
|
||||||
@ -955,12 +955,12 @@ pub struct QSelf {
|
|||||||
pub enum MatchSource {
|
pub enum MatchSource {
|
||||||
/// A `match _ { .. }`
|
/// A `match _ { .. }`
|
||||||
Normal,
|
Normal,
|
||||||
/// An `if let _ = _ { .. }` (optionally with `else { .. }`
|
/// An `if let _ = _ { .. }` (optionally with `else { .. }`)
|
||||||
IfLetDesugar {
|
IfLetDesugar {
|
||||||
contains_else_clause: bool,
|
contains_else_clause: bool,
|
||||||
},
|
},
|
||||||
/// A `while let _ = _ { .. }` (which was desugared to a
|
/// A `while let _ = _ { .. }` (which was desugared to a
|
||||||
/// `loop { match _ { .. } }`
|
/// `loop { match _ { .. } }`)
|
||||||
WhileLetDesugar,
|
WhileLetDesugar,
|
||||||
/// A desugared `for _ in _ { .. }` loop
|
/// A desugared `for _ in _ { .. }` loop
|
||||||
ForLoopDesugar,
|
ForLoopDesugar,
|
||||||
|
Loading…
Reference in New Issue
Block a user