Skip to content

Commit

Permalink
Merge #827
Browse files Browse the repository at this point in the history
827: Remove unused macro rules r=taiki-e a=alygin

The [new `unused_macro_rules` lint](rust-lang/rust#73576) that recently landed in nightly [breaks](https://github.com/crossbeam-rs/crossbeam/actions/runs/2316949414) CI builds.

This fix removes unused macro arms in tests.

Co-authored-by: Andrew Lygin <alygin@gmail.com>
  • Loading branch information
bors[bot] and alygin committed May 16, 2022
2 parents bf4c467 + c8c1c83 commit 6f52bea
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crossbeam-channel/tests/golang.rs
Expand Up @@ -238,14 +238,6 @@ macro_rules! defer {
}

macro_rules! go {
(@parse ref $v:ident, $($tail:tt)*) => {{
let ref $v = $v;
go!(@parse $($tail)*)
}};
(@parse move $v:ident, $($tail:tt)*) => {{
let $v = $v;
go!(@parse $($tail)*)
}};
(@parse $v:ident, $($tail:tt)*) => {{
let $v = $v.clone();
go!(@parse $($tail)*)
Expand Down

0 comments on commit 6f52bea

Please sign in to comment.