//! The entry point of the NLL borrow checker.
-use rustc::infer::InferCtxt;
use rustc::mir::{
BasicBlock, Body, BodyAndCache, ClosureOutlivesSubject, ClosureRegionRequirements, LocalKind,
Location, Promoted, ReadOnlyBodyAndCache,
use rustc_errors::Diagnostic;
use rustc_hir::def_id::DefId;
use rustc_index::vec::IndexVec;
+use rustc_infer::infer::InferCtxt;
use rustc_span::symbol::sym;
use std::env;
use std::fmt::Debug;
for (child, move_path) in move_data.move_paths.iter_enumerated() {
all_facts
.child
- .extend(move_path.parents(&move_data.move_paths).iter().map(|&parent| (child, parent)));
+ .extend(move_path.parents(&move_data.move_paths).map(|(parent, _)| (child, parent)));
}
// initialized_at