Skip to content

Commit 06da48a

Browse files
committed
tidy
1 parent c5e9f12 commit 06da48a

File tree

9 files changed

+8
-11
lines changed

9 files changed

+8
-11
lines changed

compiler/rustc_builtin_macros/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ builtin_macros_eii_macro_expected_function = `#[{$name}]` is only valid on funct
154154
builtin_macros_eii_macro_for_expected_list = `#[eii_macro_for(...)]` expects a list of one or two elements
155155
builtin_macros_eii_macro_for_expected_macro = `#[eii_macro_for(...)]` is only valid on macros
156156
builtin_macros_eii_macro_for_expected_max_one_argument = `#[{$name}]` expected no arguments or a single argument: `#[{$name}(default)]`
157-
builtin_macros_eii_macro_for_expected_unsafe = expected this argument to be "unsafe".
157+
builtin_macros_eii_macro_for_expected_unsafe = expected this argument to be "unsafe"
158158
.note = the second argument is optional
159159
160160
builtin_macros_env_not_defined = environment variable `{$var}` not defined at compile time

compiler/rustc_feature/src/unstable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ declare_features! (
480480
(unstable, doc_masked, "1.21.0", Some(44027)),
481481
/// Allows `dyn* Trait` objects.
482482
(incomplete, dyn_star, "1.65.0", Some(102425)),
483+
/// Externally implementatble items
484+
(unstable, eii, "CURRENT_RUSTC_VERSION", Some(125418)),
483485
/// Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
484486
(incomplete, ergonomic_clones, "1.87.0", Some(132290)),
485487
/// Allows exhaustive pattern matching on types that contain uninhabited types.
@@ -497,8 +499,6 @@ declare_features! (
497499
(unstable, extern_system_varargs, "1.86.0", Some(136946)),
498500
/// Allows defining `extern type`s.
499501
(unstable, extern_types, "1.23.0", Some(43467)),
500-
/// Externally implementatble items
501-
(unstable, eii, "CURRENT_RUSTC_VERSION", Some(125418)),
502502
/// Allow using 128-bit (quad precision) floating point numbers.
503503
(unstable, f128, "1.78.0", Some(116909)),
504504
/// Allow using 16-bit (half precision) floating point numbers.

compiler/rustc_passes/messages.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ passes_duplicate_eii_impls =
287287
*[other] more implementations were also found in the following crates: {$additional_crate_names}
288288
}
289289
290-
.help = an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict.
290+
.help = an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict
291291
292292
passes_duplicate_feature_err =
293293
the feature `{$feature}` has already been enabled

library/core/src/macros/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ pub(crate) mod builtin {
17871787
/// Externally Implementable Item: Defines an attribute macro that can override the item
17881788
/// this is applied to.
17891789
#[cfg(not(bootstrap))]
1790-
#[unstable(feature = "eii", issue = "none")]
1790+
#[unstable(feature = "eii", issue = "125418")]
17911791
#[rustc_builtin_macro]
17921792
#[allow_internal_unstable(eii_internals, decl_macro, rustc_attrs)]
17931793
pub macro eii($item:item) {
@@ -1797,7 +1797,7 @@ pub(crate) mod builtin {
17971797
/// Unsafely Externally Implementable Item: Defines an unsafe attribute macro that can override
17981798
/// the item this is applied to.
17991799
#[cfg(not(bootstrap))]
1800-
#[unstable(feature = "eii", issue = "none")]
1800+
#[unstable(feature = "eii", issue = "125418")]
18011801
#[rustc_builtin_macro]
18021802
#[allow_internal_unstable(eii_internals, decl_macro, rustc_attrs)]
18031803
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
@@ -120,7 +120,7 @@ pub use crate::macros::builtin::deref;
120120
)]
121121
pub use crate::macros::builtin::define_opaque;
122122

123-
#[unstable(feature = "eii", issue = "none")]
123+
#[unstable(feature = "eii", issue = "125418")]
124124
#[cfg(not(bootstrap))]
125125
pub use crate::macros::builtin::{eii, unsafe_eii};
126126

library/std/src/prelude/v1.rs

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

115-
#[unstable(feature = "eii", issue = "none")]
115+
#[unstable(feature = "eii", issue = "125418")]
116116
#[cfg(not(bootstrap))]
117117
pub use core::prelude::v1::{eii, unsafe_eii};
118118

tests/ui/eii/auxiliary/codegen2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

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

tests/ui/eii/default/auxiliary/decl_with_default.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@
66
pub fn decl1(x: u64) {
77
println!("default {x}");
88
}
9-

tests/ui/eii/duplicate/auxiliary/decl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

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

0 commit comments

Comments
 (0)