Skip to content

Commit 8570f0a

Browse files
author
Jorge Aparicio
committed
rustc: remove remaining boxed closures
1 parent 0cb34a3 commit 8570f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/privacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ impl<'a, 'tcx> PrivacyVisitor<'a, 'tcx> {
750750
debug!("privacy - path {}", self.nodestr(path_id));
751751
let orig_def = self.tcx.def_map.borrow()[path_id].clone();
752752
let ck = |&: tyname: &str| {
753-
let ck_public = |def: ast::DefId| {
753+
let ck_public = |&: def: ast::DefId| {
754754
let name = token::get_ident(path.segments.last().unwrap().identifier);
755755
let origdid = orig_def.def_id();
756756
self.ensure_public(span,

0 commit comments

Comments
 (0)