File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 252252#![ doc( html_root_url = "https://docs.rs/syn/2.0.36" ) ]
253253#![ cfg_attr( doc_cfg, feature( doc_cfg) ) ]
254254#![ allow( non_camel_case_types) ]
255- #![ allow( repr_transparent_external_private_fields) ] // False positive: https://github.com/rust-lang/rust/issues/78586#issuecomment-1722680482
256255#![ allow(
257256 clippy:: bool_to_int_with_if,
258257 clippy:: cast_lossless,
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ mod private {
143143 /// Support writing `token.span` rather than `token.spans[0]` on tokens that
144144 /// hold a single span.
145145 #[ repr( transparent) ]
146+ #[ allow( unknown_lints, repr_transparent_external_private_fields) ] // False positive: https://github.com/rust-lang/rust/issues/78586#issuecomment-1722680482
146147 pub struct WithSpan {
147148 pub span : Span ,
148149 }
@@ -365,6 +366,7 @@ macro_rules! define_punctuation_structs {
365366 ( $( $token: literal pub struct $name: ident/$len: tt #[ doc = $usage: literal] ) * ) => {
366367 $(
367368 #[ cfg_attr( not( doc) , repr( transparent) ) ]
369+ #[ allow( unknown_lints, repr_transparent_external_private_fields) ] // False positive: https://github.com/rust-lang/rust/issues/78586#issuecomment-1722680482
368370 #[ doc = concat!( '`' , $token, '`' ) ]
369371 ///
370372 /// Usage:
You can’t perform that action at this time.
0 commit comments