rust/tests/target/issue_5728.rs
Yacin Tmimi 475396a03c Prevent ICE when calling parse_attribute in parse_cfg_if_inner
Fixes 5728

Previously we were ignoring the diagnostic error, which lead to the ICE.
Now we properly cancel the error.
2023-04-01 13:21:12 -05:00

6 lines
117 B
Rust

cfg_if::cfg_if! {
if #[cfg(windows)] {
} else if #(&cpus) {
} else [libc::CTL_HW, libc::HW_NCPU, 0, 0]
}