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

Ignore dead code for generated source #142

Closed
wants to merge 1 commit into from

Conversation

AdminXVII
Copy link

Make sure not to pollute cargo's output with lots of dead_code warnings.

Make sure not to pollute cargo's output with lots of dead_code warnings.
@dwrensha
Copy link
Member

Adding a top-level attribute like this makes it impossible to use include!() to pull in the generated code. See rust-lang/rust#18810 and rust-lang/rfcs#752.

I recommend manually inserting the #[allow(dead_code)] in the parent file of the generated code.

@AdminXVII
Copy link
Author

Yeah, that's what I did in the end. Thanks for the quick reply!

@AdminXVII AdminXVII closed this Aug 10, 2019
@AdminXVII AdminXVII deleted the patch-1 branch August 10, 2019 01:29
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.

2 participants