Update to latest rustc

* change from `Vec::from_elem(x, y)` to `repeat(y).take(x).collect()`
* change from `task_rng` to `thread_rng`
* change from `trim_chars` to `trim_matches`