can borrow mut in proc Fixes #10617
auto merge of #11626 : nickdesaulniers/rust/issue10617, r=alexcrichton

#10617