diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-24 23:53:08 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-25 10:30:37 +0800 |
| commit | 3528149f735e801eb5710585d5f3b4fa73d6e1e5 (patch) | |
| tree | f6dd5cb897dd4fc7925fcfde370dd0be9d99625f /compiler/rustc_feature/src/lib.rs | |
| parent | 5ae4d75effa366176dd75cd0d5662da26385cfc5 (diff) | |
| download | rust-3528149f735e801eb5710585d5f3b4fa73d6e1e5.tar.gz rust-3528149f735e801eb5710585d5f3b4fa73d6e1e5.zip | |
Introduce `Enabled{Lang,Lib}Feature`
Instead of passing around random n-tuples of e.g. `(gate_name, attr_sp, since)`.
Diffstat (limited to 'compiler/rustc_feature/src/lib.rs')
| -rw-r--r-- | compiler/rustc_feature/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_feature/src/lib.rs b/compiler/rustc_feature/src/lib.rs index 216793485e5..9f42d3ec45c 100644 --- a/compiler/rustc_feature/src/lib.rs +++ b/compiler/rustc_feature/src/lib.rs @@ -135,4 +135,6 @@ pub use builtin_attrs::{ is_valid_for_get_attr, }; pub use removed::REMOVED_LANG_FEATURES; -pub use unstable::{Features, INCOMPATIBLE_FEATURES, UNSTABLE_LANG_FEATURES}; +pub use unstable::{ + EnabledLangFeature, EnabledLibFeature, Features, INCOMPATIBLE_FEATURES, UNSTABLE_LANG_FEATURES, +}; |
