Closed
Description
This works (but it shouldn't):
#![feature(target_feature_11)]
#![no_std]
use core::panic::PanicInfo;
#[panic_handler]
#[target_feature(enable = "avx2")]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}
similar to #108645 , cc #69098 (tracking issue)
@rustbot label T-lang T-compiler C-bug I-unsound F-target_feature_11
Metadata
Metadata
Assignees
Labels
Category: This is a bug.target feature 1.1 RFCIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessMedium priorityRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.This issue requires a nightly compiler in some way.