Rustup to rustc 1.16.0-nightly (468227129 2017-01-03): Fix various type errors for rustup

This commit is contained in:
Manish Goregaokar
2017-01-03 09:19:17 -08:00
parent e0ab332303
commit f552f170db
9 changed files with 27 additions and 24 deletions

View File

@@ -106,7 +106,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CyclomaticComplexity {
}
fn check_trait_item(&mut self, cx: &LateContext<'a, 'tcx>, item: &'tcx TraitItem) {
if let MethodTraitItem(_, Some(eid)) = item.node {
if let TraitItemKind::Method(_, Some(eid)) = item.node {
self.check(cx, cx.tcx.map.expr(eid), item.span);
}
}