Update for rustc

Rust now longer allows multiple `#[cfg]` attributes on the same item

I'm not sure whether the old code means `test OR macos` or `test AND macos`, but putting an `OR` here doesn't really make sense.