We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aea0e5 commit 995561dCopy full SHA for 995561d
tracing-attributes/src/expand.rs
@@ -58,7 +58,7 @@ pub(crate) fn gen_function<'a, B: ToTokens + 'a>(
58
// The `#[allow(unreachable_code)]` is given because the return
59
// statement is unreachable, but does affect inference.
60
let fake_return_edge = quote_spanned! {return_type.span()=>
61
- #[allow(unreachable_code)]
+ #[allow(unreachable_code, clippy::diverging_sub_expression)]
62
if false {
63
let __tracing_attr_fake_return: #return_type =
64
unreachable!("this is just for type inference, and is unreachable code");
0 commit comments