fix for https://github.com/mozilla/rust/issues/9394