feat(hir): Store the Span
of the move
keyword
This commit is contained in:
parent
f81d6f0cb0
commit
8de489918b
2 changed files with 8 additions and 2 deletions
|
@ -1548,7 +1548,10 @@ pub struct QSelf {
|
|||
#[derive(Clone, Copy, PartialEq, Encodable, Decodable, Debug, HashStable_Generic)]
|
||||
pub enum CaptureBy {
|
||||
/// `move |x| y + x`.
|
||||
Value,
|
||||
Value {
|
||||
/// The span of the `move` keyword.
|
||||
move_kw: Span,
|
||||
},
|
||||
/// `move` keyword was not specified.
|
||||
Ref,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue