rc: from_{owned,const} -> from_{send,freeze}
migrate many `for` loops to `foreach`
auto merge of #8184 : thestinger/rust/retreat, r=huonw