veer66, 3 months ago Clippy didn’t tell anything about the macro. <span style="color:#323232;">warning: dereferencing a tuple pattern where every element takes a reference </span><span style="color:#323232;"> --> src/lib.rs:13:9 </span><span style="color:#323232;"> | </span><span style="color:#323232;">13 | &Some(ref cons_rc) => { </span><span style="color:#323232;"> | ^^^^^^^^^^^^^^^^^^ </span><span style="color:#323232;"> | </span><span style="color:#323232;"> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference </span><span style="color:#323232;"> = note: `#[warn(clippy::needless_borrowed_reference)]` on by default </span><span style="color:#323232;">help: try removing the `&` and `ref` parts </span><span style="color:#323232;"> | </span><span style="color:#323232;">13 - &Some(ref cons_rc) => { </span><span style="color:#323232;">13 + Some(cons_rc) => { </span><span style="color:#323232;"> | </span> To put #[allow(this_linting_rule)] like this: <span style="color:#323232;"> [ $x:expr, </span><span style="font-weight:bold;color:#a71d5d;">$</span><span style="color:#323232;">( $y:expr ),</span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#323232;">] </span><span style="font-weight:bold;color:#a71d5d;">=> </span><span style="color:#323232;">{ </span><span style="color:#323232;"> #[allow(unused_assignments)] </span><span style="color:#323232;"> { </span> I got error[E0658]: attributes on expressions are experimental. To put it like this: <span style="color:#323232;">#[macro_export] </span><span style="color:#323232;">#[allow(unused_assignments)] </span><span style="color:#62a35c;">macro_rules! </span><span style="color:#323232;">list { </span><span style="color:#323232;"> () </span><span style="font-weight:bold;color:#a71d5d;">=> </span><span style="color:#323232;">{ </span><span style="color:#323232;"> </span><span style="color:#0086b3;">None </span> It doesn’t work.
Clippy didn’t tell anything about the macro.
<span style="color:#323232;">warning: dereferencing a tuple pattern where every element takes a reference </span><span style="color:#323232;"> --> src/lib.rs:13:9 </span><span style="color:#323232;"> | </span><span style="color:#323232;">13 | &Some(ref cons_rc) => { </span><span style="color:#323232;"> | ^^^^^^^^^^^^^^^^^^ </span><span style="color:#323232;"> | </span><span style="color:#323232;"> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrowed_reference </span><span style="color:#323232;"> = note: `#[warn(clippy::needless_borrowed_reference)]` on by default </span><span style="color:#323232;">help: try removing the `&` and `ref` parts </span><span style="color:#323232;"> | </span><span style="color:#323232;">13 - &Some(ref cons_rc) => { </span><span style="color:#323232;">13 + Some(cons_rc) => { </span><span style="color:#323232;"> | </span>
To put #[allow(this_linting_rule)] like this:
<span style="color:#323232;"> [ $x:expr, </span><span style="font-weight:bold;color:#a71d5d;">$</span><span style="color:#323232;">( $y:expr ),</span><span style="font-weight:bold;color:#a71d5d;">* </span><span style="color:#323232;">] </span><span style="font-weight:bold;color:#a71d5d;">=> </span><span style="color:#323232;">{ </span><span style="color:#323232;"> #[allow(unused_assignments)] </span><span style="color:#323232;"> { </span>
I got error[E0658]: attributes on expressions are experimental.
To put it like this:
<span style="color:#323232;">#[macro_export] </span><span style="color:#323232;">#[allow(unused_assignments)] </span><span style="color:#62a35c;">macro_rules! </span><span style="color:#323232;">list { </span><span style="color:#323232;"> () </span><span style="font-weight:bold;color:#a71d5d;">=> </span><span style="color:#323232;">{ </span><span style="color:#323232;"> </span><span style="color:#0086b3;">None </span>
It doesn’t work.