Update for https://github.com/rust-lang/rust/pull/16453
use as_slice
Merge pull request #318 from csherratt/fix_master

Update for https://github.com/rust-lang/rust/pull/16453