Use inputs/output getters for rustc::ty::FnSig instead of the now non-existent fields.
This commit is contained in:
parent
778ce4dfd3
commit
3de6f9db20
7 changed files with 7 additions and 7 deletions
|
@ -60,7 +60,7 @@ fn check_arguments(cx: &LateContext, arguments: &[Expr], type_definition: &TyS,
|
|||
match type_definition.sty {
|
||||
TypeVariants::TyFnDef(_, _, fn_type) |
|
||||
TypeVariants::TyFnPtr(fn_type) => {
|
||||
let parameters = &fn_type.sig.skip_binder().inputs;
|
||||
let parameters = fn_type.sig.skip_binder().inputs();
|
||||
for (argument, parameter) in arguments.iter().zip(parameters.iter()) {
|
||||
match parameter.sty {
|
||||
TypeVariants::TyRef(_, TypeAndMut { mutbl: MutImmutable, .. }) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue