rustc: remove remaining boxed closures
This commit is contained in:
parent
0cb34a3609
commit
8570f0acc7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user