Make quickcheck work again.

For the fix: https://github.com/rust-lang/rust/issues/17878