Skip to content

Commit

Permalink
work around rust-lang/rust#35203
Browse files Browse the repository at this point in the history
  • Loading branch information
arcnmx committed Jan 30, 2020
1 parent 16f9298 commit 28669fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ macro_rules! specialize {
($trait_fn_id ($trait_fn_ty) ($($trait_fn_bounds)*) ($($trait_fn_where)*) ($($trait_fn_args)*))
($($items)*
impl<$($trait_impl_bounds)*, $($clause_bounds)*> $trait_id for $trait_impl_id where $($clause_where)* $($trait_impl_where)* {
#[allow(unused_mut, unused_variables)]
default fn $trait_fn_id<
$($trait_fn_bounds)*
>($($trait_fn_args)*) -> $trait_fn_ty
Expand Down Expand Up @@ -338,6 +339,7 @@ macro_rules! specialize {
) => {
specialize! { @items
trait $trait_id {
#[allow(patterns_in_fns_without_body)]
fn $trait_fn_id<
$($trait_fn_bounds)*
>($($trait_fn_args)*) -> $trait_fn_ty
Expand Down

0 comments on commit 28669fe

Please sign in to comment.