rustc_resolve: unbox closures used in let bindings

This commit is contained in:
Jorge Aparicio
2014-12-30 20:56:41 -05:00
parent a49cdb8c36
commit 1e4bbefae1
+2 -2
View File
@@ -1448,7 +1448,7 @@ fn get_binding(this: &mut Resolver,
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 @@ fn merge_import_resolution(&mut self,
// 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",