diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-05 19:43:35 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-16 08:17:23 +1100 |
| commit | d284c8a2d7a2de918a966bee9c9069d7b5bf06bf (patch) | |
| tree | 0a25ff76c1863aa37269ba5d8cd2ea817078c2ef /compiler/rustc_lint/src/expect.rs | |
| parent | 41b689948736cc79f35b6002c040513291dcd7c2 (diff) | |
| download | rust-d284c8a2d7a2de918a966bee9c9069d7b5bf06bf.tar.gz rust-d284c8a2d7a2de918a966bee9c9069d7b5bf06bf.zip | |
Rename `ACTIVE_FEATURES` as `UNSTABLE_FEATURES`.
It's a better name, and lets "active features" refer to the features that are active in a particular program, due to being declared or enabled by the edition. The commit also renames `Features::enabled` as `Features::active` to match this; I changed my mind and have decided that "active" is a little better thatn "enabled" for this, particularly because a number of pre-existing comments use "active" in this way. Finally, the commit renames `Status::Stable` as `Status::Accepted`, to match `ACCEPTED_FEATURES`.
Diffstat (limited to 'compiler/rustc_lint/src/expect.rs')
| -rw-r--r-- | compiler/rustc_lint/src/expect.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/expect.rs b/compiler/rustc_lint/src/expect.rs index b1266b58a61..740c90757e6 100644 --- a/compiler/rustc_lint/src/expect.rs +++ b/compiler/rustc_lint/src/expect.rs @@ -11,7 +11,7 @@ pub(crate) fn provide(providers: &mut Providers) { } fn check_expectations(tcx: TyCtxt<'_>, tool_filter: Option<Symbol>) { - if !tcx.features().enabled(sym::lint_reasons) { + if !tcx.features().active(sym::lint_reasons) { return; } |
