Upgrade Rust to rustc 1.8.0-nightly (18b851bc5 2016-01-22)

fixes #573
This commit is contained in:
Manish Goregaokar 2016-01-22 17:54:44 +05:30
parent 28b0437354
commit c86a5ccd2e
10 changed files with 20 additions and 20 deletions

View file

@ -4,8 +4,8 @@
use rustc::lint::*;
use rustc_front::hir::*;
use rustc::front::map::NodeItem;
use rustc::middle::ty;
use rustc::front::map::Node;
use utils::{span_lint, match_type};
use utils::{STRING_PATH, VEC_PATH};
@ -42,7 +42,7 @@ impl LateLintPass for PtrArg {
fn check_impl_item(&mut self, cx: &LateContext, item: &ImplItem) {
if let ImplItemKind::Method(ref sig, _) = item.node {
if let Some(Node::NodeItem(it)) = cx.tcx.map.find(cx.tcx.map.get_parent(item.id)) {
if let Some(NodeItem(it)) = cx.tcx.map.find(cx.tcx.map.get_parent(item.id)) {
if let ItemImpl(_, _, _, Some(_), _, _) = it.node {
return; // ignore trait impls
}