-
-
Notifications
You must be signed in to change notification settings - Fork 33
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 warnings when #[pin_project] used within macro_rules! macros #298
Conversation
The |
@Aaron1011 I agree. I'll file an issue on rust repo. |
Filed rust-lang/rust#77973 |
Actually, it looks like the warning is actually being emitted for the generated projection struct ( However, it looks like the lint normally get suppresed here: https://github.com/rust-lang/rust/blob/7f587168102498a488abf608a86c7fdfa62fb7bb/compiler/rustc_middle/src/lint.rs#L245-L260, due to it being emitted from the external |
bors r+ |
Build succeeded: |
When
#[pin_project]
attribute used withinmacro_rules!
macros, the generated code receives warnings.playground
Refs: rust-lang/rust#77973