Open
Description
This should panic but it doesn`t
#[target_feature = "+avx"]
pub fn should_panic() {
#[cfg(target_feature = "avx")]
panic!("have_avx");
}
I would like for this to work because I have a macro that generates 2 copys of a function, one with #[target_feature = "+feat"]
and one without and I want to conditionally use some assembly when the feature is available.
CC #29717