Skip to content

Commit 1e4bbef

Browse files
author
Jorge Aparicio
committed
rustc_resolve: unbox closures used in let bindings
1 parent a49cdb8 commit 1e4bbef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_resolve/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
14481448
let mut import_resolutions = module_.import_resolutions.borrow_mut();
14491449
let import_resolution = &mut (*import_resolutions)[target];
14501450
{
1451-
let check_and_write_import = |namespace, result: &_, used_public: &mut bool| {
1451+
let mut check_and_write_import = |&mut: namespace, result: &_, used_public: &mut bool| {
14521452
let namespace_name = match namespace {
14531453
TypeNS => "type",
14541454
ValueNS => "value",
@@ -1691,7 +1691,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
16911691

16921692
// Merge the child item into the import resolution.
16931693
{
1694-
let merge_child_item = |namespace| {
1694+
let mut merge_child_item = |&mut : namespace| {
16951695
if name_bindings.defined_in_namespace_with(namespace, IMPORTABLE | PUBLIC) {
16961696
let namespace_name = match namespace {
16971697
TypeNS => "type",

0 commit comments

Comments
 (0)