diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-04 16:10:27 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-05 17:22:13 -0500 |
| commit | 8570f0acc7f7002b745968d9df57daa49befcc3b (patch) | |
| tree | a51ca4c637f52546008afd992ff8fdd556e0114b /src | |
| parent | 0cb34a3609a028ad0bcaa8e200f97b18bb17383e (diff) | |
| download | rust-8570f0acc7f7002b745968d9df57daa49befcc3b.tar.gz rust-8570f0acc7f7002b745968d9df57daa49befcc3b.zip | |
rustc: remove remaining boxed closures
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/middle/privacy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/middle/privacy.rs b/src/librustc/middle/privacy.rs index ace0882a12c..50e328ef0e3 100644 --- a/src/librustc/middle/privacy.rs +++ b/src/librustc/middle/privacy.rs @@ -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, |
