about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2014-12-30 20:56:41 -0500
committerJorge Aparicio <japaricious@gmail.com>2014-12-31 22:50:27 -0500
commit1e4bbefae126be24cb443252039ef0fd5ccba62c (patch)
treeba4acbfbeab788d1f2858db5787103223248a367
parenta49cdb8c365881e32e5b31f7d438328d2e2344c4 (diff)
downloadrust-1e4bbefae126be24cb443252039ef0fd5ccba62c.tar.gz
rust-1e4bbefae126be24cb443252039ef0fd5ccba62c.zip
rustc_resolve: unbox closures used in let bindings
-rw-r--r--src/librustc_resolve/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs
index e371046a9b2..7efa9ad737f 100644
--- a/src/librustc_resolve/lib.rs
+++ b/src/librustc_resolve/lib.rs
@@ -1448,7 +1448,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
         let mut import_resolutions = module_.import_resolutions.borrow_mut();
         let import_resolution = &mut (*import_resolutions)[target];
         {
-            let check_and_write_import = |namespace, result: &_, used_public: &mut bool| {
+            let mut check_and_write_import = |&mut: namespace, result: &_, used_public: &mut bool| {
                 let namespace_name = match namespace {
                     TypeNS => "type",
                     ValueNS => "value",
@@ -1691,7 +1691,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
 
         // Merge the child item into the import resolution.
         {
-            let merge_child_item = |namespace| {
+            let mut merge_child_item = |&mut : namespace| {
                 if name_bindings.defined_in_namespace_with(namespace, IMPORTABLE | PUBLIC) {
                     let namespace_name = match namespace {
                         TypeNS => "type",