Backport for older Rust.