We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7ebc4 commit 67c099fCopy full SHA for 67c099f
1 file changed
libcc2rs-macros/src/state_machine.rs
@@ -61,7 +61,6 @@ impl GotoStateMachine {
61
};
62
quote! {
63
#idx => {
64
- #[allow(unreachable_code)]
65
{ #body; #tail }
66
}
67
@@ -74,7 +73,6 @@ impl GotoStateMachine {
74
73
(
75
quote! { let mut #flag: bool = false; },
76
77
78
if #flag { #stmt }
79
},
80
)
@@ -112,7 +110,6 @@ impl StateMachine for GotoStateMachine {
112
110
#brk_decl
113
111
#cnt_decl
114
let mut #s: u32 = 0;
115
- #[allow(unreachable_code, unused_labels)]
116
#lbl: loop {
117
match #s {
118
#(#body_arms)*
@@ -164,7 +161,6 @@ impl SwitchStateMachine {
164
161
});
165
162
let body: Expr = syn::parse_quote! {
166
163
{
167
- #[allow(unreachable_patterns)]
168
match #cond {
169
#(#case_arms,)*
170
_ => break #label,
0 commit comments