Skip to content

Conversation

@sfackler
Copy link
Collaborator

Closes #839

let ident = raw.ident.as_ref().unwrap().clone();
Ok(Field {
name: overrides.name.unwrap_or_else(|| ident.to_string()),
name: overrides.name.unwrap_or_else(|| {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dtolnay am I right in thinking that there's nothing that uses IdentFragment to create a string?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I know of. IdentFragment isn't intended for anything other than using in format_ident.

@sfackler sfackler merged commit 385bf35 into master Nov 23, 2021
@sfackler sfackler deleted the fix-raw-idents branch November 23, 2021 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"__r#type" is not a valid identifier

3 participants