Rustup to *rustc 1.20.0-nightly (d84693b93
2017-07-09)*
This commit is contained in:
parent
fd7dda097b
commit
a82cd77b2b
16 changed files with 57 additions and 59 deletions
|
@ -44,11 +44,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnnecessaryMutPassed {
|
|||
&print::to_string(print::NO_ANN, |s| s.print_qpath(path, false)));
|
||||
}
|
||||
},
|
||||
ExprMethodCall(ref name, _, ref arguments) => {
|
||||
ExprMethodCall(ref path, _, ref arguments) => {
|
||||
let def_id = cx.tables.type_dependent_defs[&e.id].def_id();
|
||||
let substs = cx.tables.node_substs(e.id);
|
||||
let method_type = cx.tcx.type_of(def_id).subst(cx.tcx, substs);
|
||||
check_arguments(cx, arguments, method_type, &name.node.as_str())
|
||||
check_arguments(cx, arguments, method_type, &path.name.as_str())
|
||||
},
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue