Refactor Name ready for hygienic macro

This commit is contained in:
uHOOCCOOHu 2019-09-27 02:04:47 +08:00
parent 53a30d9e69
commit 128dc5355b
No known key found for this signature in database
GPG key ID: CED392DE0C483D00
4 changed files with 95 additions and 85 deletions

View file

@ -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();