rustc: remove remaining boxed closures

This commit is contained in:
Jorge Aparicio 2015-01-04 16:10:27 -05:00
parent 0cb34a3609
commit 8570f0acc7

View File

@ -750,7 +750,7 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
debug!("privacy - path {}", self.nodestr(path_id));
let orig_def = self.tcx.def_map.borrow()[path_id].clone();
let ck = |&: tyname: &str| {
let ck_public = |def: ast::DefId| {
let ck_public = |&: def: ast::DefId| {
let name = token::get_ident(path.segments.last().unwrap().identifier);
let origdid = orig_def.def_id();
self.ensure_public(span,