mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
use recrod terminology for hir::Pat
This commit is contained in:
parent
db69d134fb
commit
48ffbf29b7
3 changed files with 7 additions and 8 deletions
|
@ -472,7 +472,7 @@ pub enum Pat {
|
|||
Missing,
|
||||
Wild,
|
||||
Tuple(Vec<PatId>),
|
||||
Struct {
|
||||
Record {
|
||||
path: Option<Path>,
|
||||
args: Vec<RecordFieldPat>,
|
||||
// FIXME: 'ellipsis' option
|
||||
|
@ -518,7 +518,7 @@ impl Pat {
|
|||
let total_iter = prefix.iter().chain(rest.iter()).chain(suffix.iter());
|
||||
total_iter.copied().for_each(f);
|
||||
}
|
||||
Pat::Struct { args, .. } => {
|
||||
Pat::Record { args, .. } => {
|
||||
args.iter().map(|f| f.pat).for_each(f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue