Skip to content

Commit cbd6653

Browse files
committed
rename feature gate to extern_item_impls
1 parent 4ffff92 commit cbd6653

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+51
-51
lines changed

compiler/rustc_error_codes/src/error_codes/E0806.md

Lines changed: 2 additions & 2 deletions

compiler/rustc_feature/src/unstable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,6 @@ declare_features! (
493493
(unstable, doc_masked, "1.21.0", Some(44027)),
494494
/// Allows features to allow target_feature to better interact with traits.
495495
(incomplete, effective_target_features, "1.91.0", Some(143352)),
496-
/// Externally implementatble items
497-
(unstable, extern_item_impls, "CURRENT_RUSTC_VERSION", Some(125418)),
498496
/// Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
499497
(incomplete, ergonomic_clones, "1.87.0", Some(132290)),
500498
/// Allows exhaustive pattern matching on types that contain uninhabited types.
@@ -505,6 +503,8 @@ declare_features! (
505503
(incomplete, explicit_tail_calls, "1.72.0", Some(112788)),
506504
/// Allows using `#[export_stable]` which indicates that an item is exportable.
507505
(incomplete, export_stable, "1.88.0", Some(139939)),
506+
/// Externally implementatble items
507+
(unstable, extern_item_impls, "CURRENT_RUSTC_VERSION", Some(125418)),
508508
/// Allows defining `extern type`s.
509509
(unstable, extern_types, "1.23.0", Some(43467)),
510510
/// Allow using 128-bit (quad precision) floating point numbers.

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,6 @@ symbols! {
931931
eii_extern_target,
932932
eii_impl,
933933
eii_internals,
934-
extern_item_impls,
935934
eii_shared_macro,
936935
emit,
937936
emit_enum,
@@ -992,6 +991,7 @@ symbols! {
992991
extern_crate_item_prelude,
993992
extern_crate_self,
994993
extern_in_paths,
994+
extern_item_impls,
995995
extern_prelude,
996996
extern_system_varargs,
997997
extern_types,

library/core/src/macros/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ pub(crate) mod builtin {
18931893

18941894
/// Externally Implementable Item: Defines an attribute macro that can override the item
18951895
/// this is applied to.
1896-
#[unstable(feature = "eii", issue = "125418")]
1896+
#[unstable(feature = "extern_item_impls", issue = "125418")]
18971897
#[rustc_builtin_macro]
18981898
#[allow_internal_unstable(eii_internals, decl_macro, rustc_attrs)]
18991899
pub macro eii($item:item) {
@@ -1902,7 +1902,7 @@ pub(crate) mod builtin {
19021902

19031903
/// Unsafely Externally Implementable Item: Defines an unsafe attribute macro that can override
19041904
/// the item this is applied to.
1905-
#[unstable(feature = "eii", issue = "125418")]
1905+
#[unstable(feature = "extern_item_impls", issue = "125418")]
19061906
#[rustc_builtin_macro]
19071907
#[allow_internal_unstable(eii_internals, decl_macro, rustc_attrs)]
19081908
pub macro unsafe_eii($item:item) {

library/core/src/prelude/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub use crate::macros::builtin::define_opaque;
125125
)]
126126
pub use crate::macros::builtin::From;
127127

128-
#[unstable(feature = "eii", issue = "125418")]
128+
#[unstable(feature = "extern_item_impls", issue = "125418")]
129129
pub use crate::macros::builtin::{eii, unsafe_eii};
130130

131131
#[unstable(feature = "eii_internals", issue = "none")]

library/std/src/prelude/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub use core::prelude::v1::deref;
110110
)]
111111
pub use core::prelude::v1::define_opaque;
112112

113-
#[unstable(feature = "eii", issue = "125418")]
113+
#[unstable(feature = "extern_item_impls", issue = "125418")]
114114
pub use core::prelude::v1::{eii, unsafe_eii};
115115

116116
#[unstable(feature = "eii_internals", issue = "none")]

tests/ui/eii/auxiliary/codegen1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ no-prefer-dynamic
22
#![crate_type = "rlib"]
3-
#![feature(eii)]
3+
#![feature(extern_item_impls)]
44

55
#[eii(eii1)]
66
fn decl1(x: u64);

tests/ui/eii/auxiliary/codegen2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ no-prefer-dynamic
22
#![crate_type = "rlib"]
3-
#![feature(eii)]
3+
#![feature(extern_item_impls)]
44

55
#[eii(eii1)]
66
pub fn decl1(x: u64);

tests/ui/eii/auxiliary/codegen3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ no-prefer-dynamic
22
#![crate_type = "rlib"]
3-
#![feature(eii)]
3+
#![feature(extern_item_impls)]
44

55
// does have an impl but can't be called
66
#[eii(eii1)]

tests/ui/eii/auxiliary/cross_crate_eii_declaration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ no-prefer-dynamic
22
#![crate_type = "rlib"]
3-
#![feature(eii)]
3+
#![feature(extern_item_impls)]
44
#![feature(decl_macro)]
55
#![feature(rustc_attrs)]
66
#![feature(eii_internals)]

0 commit comments

Comments
 (0)