Move scrutinee HirId
into MatchSource::TryDesugar
This commit is contained in:
parent
55f8c66a60
commit
5021dde1a0
29 changed files with 41 additions and 49 deletions
|
@ -2148,7 +2148,7 @@ pub enum MatchSource {
|
|||
/// A desugared `for _ in _ { .. }` loop.
|
||||
ForLoopDesugar,
|
||||
/// A desugared `?` operator.
|
||||
TryDesugar,
|
||||
TryDesugar(HirId),
|
||||
/// A desugared `<expr>.await`.
|
||||
AwaitDesugar,
|
||||
/// A desugared `format_args!()`.
|
||||
|
@ -2162,7 +2162,7 @@ impl MatchSource {
|
|||
match self {
|
||||
Normal => "match",
|
||||
ForLoopDesugar => "for",
|
||||
TryDesugar => "?",
|
||||
TryDesugar(_) => "?",
|
||||
AwaitDesugar => ".await",
|
||||
FormatArgs => "format_args!()",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue