nightly feature tracking: get rid of the per-feature bool fields

This commit is contained in:
Ralf Jung
2024-10-09 09:01:57 +02:00
parent e1f3068995
commit ad3991d303
108 changed files with 299 additions and 331 deletions

View File

@@ -265,7 +265,7 @@ impl<'tcx> Collector<'tcx> {
NativeLibKind::RawDylib
}
"link-arg" => {
if !features.link_arg_attribute {
if !features.link_arg_attribute() {
feature_err(
sess,
sym::link_arg_attribute,
@@ -314,7 +314,7 @@ impl<'tcx> Collector<'tcx> {
.emit_err(errors::LinkCfgSinglePredicate { span: item.span() });
continue;
};
if !features.link_cfg {
if !features.link_cfg() {
feature_err(
sess,
sym::link_cfg,
@@ -384,7 +384,7 @@ impl<'tcx> Collector<'tcx> {
};
macro report_unstable_modifier($feature: ident) {
if !features.$feature {
if !features.$feature() {
// FIXME: make this translatable
#[expect(rustc::untranslatable_diagnostic)]
feature_err(