Skip to content

Commit 67c099f

Browse files
committed
Delete unreachable/unused attributes
1 parent 7c7ebc4 commit 67c099f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

libcc2rs-macros/src/state_machine.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ impl GotoStateMachine {
6161
};
6262
quote! {
6363
#idx => {
64-
#[allow(unreachable_code)]
6564
{ #body; #tail }
6665
}
6766
}
@@ -74,7 +73,6 @@ impl GotoStateMachine {
7473
(
7574
quote! { let mut #flag: bool = false; },
7675
quote! {
77-
#[allow(unreachable_code)]
7876
if #flag { #stmt }
7977
},
8078
)
@@ -112,7 +110,6 @@ impl StateMachine for GotoStateMachine {
112110
#brk_decl
113111
#cnt_decl
114112
let mut #s: u32 = 0;
115-
#[allow(unreachable_code, unused_labels)]
116113
#lbl: loop {
117114
match #s {
118115
#(#body_arms)*
@@ -164,7 +161,6 @@ impl SwitchStateMachine {
164161
});
165162
let body: Expr = syn::parse_quote! {
166163
{
167-
#[allow(unreachable_patterns)]
168164
match #cond {
169165
#(#case_arms,)*
170166
_ => break #label,

0 commit comments

Comments
 (0)