fix "warning: deprecated syntax, use `for` keyword now"
auto merge of #18922 : japaric/rust/for, r=jakub-

r? @alexcrichton