1
Fork 0

Try to fix compilation error on rustc 1.19.0-nightly (4ed2edaaf 2017-06-01)

This commit is contained in:
messense 2017-06-02 12:13:04 +08:00
parent 892cc2833c
commit 67cccc5c16
No known key found for this signature in database
GPG key ID: BB41A8A2C716CCA9
9 changed files with 20 additions and 39 deletions

View file

@ -95,7 +95,7 @@ fn check_trait_items(cx: &LateContext, item: &Item, trait_items: &[TraitItemRef]
{
let did = cx.tcx.hir.local_def_id(item.id.node_id);
let impl_ty = cx.tcx.type_of(did);
impl_ty.fn_args().skip_binder().len() == 1
impl_ty.fn_sig().inputs().skip_binder().len() == 1
}
} else {
false
@ -122,7 +122,7 @@ fn check_impl_items(cx: &LateContext, item: &Item, impl_items: &[ImplItemRef]) {
{
let did = cx.tcx.hir.local_def_id(item.id.node_id);
let impl_ty = cx.tcx.type_of(did);
impl_ty.fn_args().skip_binder().len() == 1
impl_ty.fn_sig().inputs().skip_binder().len() == 1
}
} else {
false