clean up target feature system; most of the toggleability is now handled by the ABI target feature check
This commit is contained in:
@@ -728,7 +728,7 @@ pub(crate) fn global_llvm_features(
|
||||
sess.dcx().emit_warn(unknown_feature);
|
||||
}
|
||||
Some((_, stability, _)) => {
|
||||
if let Err(reason) = stability.toggle_allowed(&sess.target, enable) {
|
||||
if let Err(reason) = stability.toggle_allowed() {
|
||||
sess.dcx().emit_warn(ForbiddenCTargetFeature {
|
||||
feature,
|
||||
enabled: if enable { "enabled" } else { "disabled" },
|
||||
|
||||
Reference in New Issue
Block a user