Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused macro rules #827

Merged
merged 2 commits into from
May 16, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions crossbeam-channel/tests/golang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,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 All @@ -222,9 +214,6 @@ macro_rules! go {
}
})
};
(@parse $($tail:tt)*) => {
compile_error!("invalid `go!` syntax")
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a false positive since this rule exists to be "unused".

($($tail:tt)*) => {{
go!(@parse $($tail)*)
}};
Expand Down