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

@ -1,7 +1,7 @@
use rustc::lint::*;
use rustc::front::map::Node::NodeStmt;
use rustc_front::hir::*;
use rustc_front::intravisit as visit;
use rustc::front::map::Node;
use rustc::middle::ty;
use rustc::middle::ty::adjustment::AutoAdjustment;
use rustc::middle::expr_use_visitor::*;
@ -91,7 +91,7 @@ impl<'a, 'tcx: 'a> Delegate<'tcx> for EscapeDelegate<'a, 'tcx> {
return;
}
if let Categorization::Rvalue(..) = cmt.cat {
if let Some(Node::NodeStmt(st)) = self.cx
if let Some(NodeStmt(st)) = self.cx
.tcx
.map
.find(self.cx.tcx.map.get_parent_node(cmt.id)) {