Try to fix compilation error on rustc 1.19.0-nightly (4ed2edaaf
2017-06-01)
This commit is contained in:
parent
892cc2833c
commit
67cccc5c16
9 changed files with 20 additions and 39 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue