Fixes the code to the new Rust nightly build changes.