feat(hir): Store the Span of the move keyword

This commit is contained in:
Dinu Blanovschi 2023-11-04 19:39:32 +01:00
parent f81d6f0cb0
commit 8de489918b
2 changed files with 8 additions and 2 deletions

View file

@ -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,
}