Skip to content

Commit

Permalink
Ignore false repr_transparent_external_private_fields FCW in generate…
Browse files Browse the repository at this point in the history
…d code

Live dangerously.

rust-lang/rust#78586
  • Loading branch information
dtolnay committed Sep 18, 2023
1 parent ef6476c commit 299c782
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codegen/src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ pub fn generate(defs: &Definitions) -> Result<()> {
file::write(
TESTS_DEBUG_SRC,
quote! {
// False positive: https://github.com/rust-lang/rust/issues/78586#issuecomment-1722680482
#![allow(repr_transparent_external_private_fields)]

#![allow(clippy::match_wildcard_for_single_variants)]

use super::{Lite, Present};
Expand Down
1 change: 1 addition & 0 deletions tests/debug/gen.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 299c782

Please sign in to comment.