diff options
author | zzhu <zzhu@mozilla.com> | 2017-08-02 22:32:52 -0700 |
---|---|---|
committer | zzhu <zzhu@mozilla.com> | 2017-08-02 22:32:52 -0700 |
commit | dbc85c67904079caac43923b29cf7e148dc81469 (patch) | |
tree | d0ff306ec54adcac5e240440b76cfa81ecad11b0 /src/ir/function.rs | |
parent | e9b270e8f9a037cb9bd888181a8e4374a91c8b70 (diff) |
Clean up trivially derive debug
Diffstat (limited to 'src/ir/function.rs')
-rw-r--r-- | src/ir/function.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ir/function.rs b/src/ir/function.rs index fbb6121e..99ab8772 100644 --- a/src/ir/function.rs +++ b/src/ir/function.rs @@ -480,9 +480,7 @@ impl Trace for FunctionSig { // // Note that copy is always derived, so we don't need to implement it. impl CanTriviallyDeriveDebug for FunctionSig { - type Extra = (); - - fn can_trivially_derive_debug(&self, _ctx: &BindgenContext, _: ()) -> bool { + fn can_trivially_derive_debug(&self) -> bool { const RUST_DERIVE_FUNPTR_LIMIT: usize = 12; if self.argument_types.len() > RUST_DERIVE_FUNPTR_LIMIT { return false; |