mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Refactor Name
ready for hygienic macro
This commit is contained in:
parent
53a30d9e69
commit
128dc5355b
4 changed files with 95 additions and 85 deletions
|
@ -133,7 +133,7 @@ impl VariantData {
|
|||
.fields()
|
||||
.enumerate()
|
||||
.map(|(i, fd)| StructFieldData {
|
||||
name: Name::tuple_field_name(i),
|
||||
name: Name::new_tuple_field(i),
|
||||
type_ref: TypeRef::from_ast_opt(fd.type_ref()),
|
||||
})
|
||||
.collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue