Skip to content

Commit a13bfee

Browse files
rj00amyl7
authored andcommitted
Restore #[allow(deprecated)] on generated s! types
1 parent 8df2e9a commit a13bfee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ macro_rules! s {
6767
)*);
6868
(it: $(#[$attr:meta])* pub union $i:ident { $($field:tt)* }) => (
6969
__item! {
70+
#[allow(deprecated)]
7071
#[repr(C)]
7172
$(#[$attr])*
7273
pub union $i { $($field)* }
@@ -79,6 +80,7 @@ macro_rules! s {
7980
);
8081
(it: $(#[$attr:meta])* pub struct $i:ident { $($field:tt)* }) => (
8182
__item! {
83+
#[allow(deprecated)]
8284
#[repr(C)]
8385
$(#[$attr])*
8486
pub struct $i { $($field)* }

0 commit comments

Comments
 (0)