diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-09-19 18:07:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 18:07:51 -0400 |
commit | 6fc0a31febb63d77da1a38aa2eea9d10fbea0d0d (patch) | |
tree | cb09d8cb35d94b1af4e3cf4f4bdf447d29a76029 /src/codegen/impl_debug.rs | |
parent | a54a9dc796372478d26fa5b165c3b4d129cbcfce (diff) | |
parent | c09c74e18b6ce8b69626a59737d8e82a3eb1d1b8 (diff) |
Auto merge of #1391 - emilio:u128, r=fitzgen
codegen: Generate u128 / i128 when available.
This is the first step to fix #1370 / #1338 / etc.
Fix for that will build up on this.
Diffstat (limited to 'src/codegen/impl_debug.rs')
-rw-r--r-- | src/codegen/impl_debug.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/impl_debug.rs b/src/codegen/impl_debug.rs index 0f8e4d96..2c6d36d9 100644 --- a/src/codegen/impl_debug.rs +++ b/src/codegen/impl_debug.rs @@ -236,7 +236,7 @@ impl<'a> ImplDebug<'a> for Item { let inner_type = ctx.resolve_type(inner).canonical_type(ctx); match *inner_type.kind() { TypeKind::Function(ref sig) - if !sig.can_trivially_derive_debug() => { + if !sig.can_trivially_derive_debug(ctx) => { Some((format!("{}: FunctionPointer", name), vec![])) } _ => debug_print(name, quote! { #name_ident }), |