can borrow mut in proc Fixes #10617