Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of raw idents with #[pyo3(set)] #745

Merged
merged 2 commits into from
Jan 27, 2020
Merged

Conversation

davidhewitt
Copy link
Member

@davidhewitt davidhewitt commented Jan 27, 2020

Fixes #743

@davidhewitt
Copy link
Member Author

CI failure is because of #747

@@ -441,7 +441,7 @@ fn impl_descriptors(
}
FnType::Setter => {
let setter_name =
syn::Ident::new(&format!("set_{}", name), Span::call_site());
syn::Ident::new(&format!("set_{}", name.unraw()), Span::call_site());
Copy link
Member

Choose a reason for hiding this comment

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

👍

@davidhewitt
Copy link
Member Author

Rebased now CI should be green.

@kngwyu
Copy link
Member

kngwyu commented Jan 27, 2020

Thank you!

@kngwyu kngwyu merged commit 99a7856 into PyO3:master Jan 27, 2020
@ethanhs
Copy link
Contributor

ethanhs commented Jan 27, 2020

Thank you so much @davidhewitt !

@davidhewitt davidhewitt deleted the fix-743 branch February 8, 2020 19:11
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.

Rust ICE when attribute is escaped like r#type
3 participants