1
Fork 0

warn when using an unstable feature with -Ctarget-feature

This commit is contained in:
Ralf Jung 2023-11-05 18:06:19 +01:00
parent 992943dbae
commit b85c6835d0
7 changed files with 64 additions and 23 deletions

View file

@ -26,6 +26,13 @@ pub(crate) struct UnknownCTargetFeature<'a> {
pub rust_feature: PossibleFeature<'a>,
}
#[derive(Diagnostic)]
#[diag(codegen_llvm_unstable_ctarget_feature)]
#[note]
pub(crate) struct UnstableCTargetFeature<'a> {
pub feature: &'a str,
}
#[derive(Subdiagnostic)]
pub(crate) enum PossibleFeature<'a> {
#[help(codegen_llvm_possible_feature)]