Skip to content

Commit 4ab6104

Browse files
committed
tidy
1 parent a2775a6 commit 4ab6104

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
@@ -473,6 +473,8 @@ declare_features! (
473473
(unstable, doc_masked, "1.21.0", Some(44027)),
474474
/// Allows `dyn* Trait` objects.
475475
(incomplete, dyn_star, "1.65.0", Some(102425)),
476+
/// Externally implementatble items
477+
(unstable, eii, "CURRENT_RUSTC_VERSION", Some(125418)),
476478
/// Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
477479
(incomplete, ergonomic_clones, "1.87.0", Some(132290)),
478480
/// Allows exhaustive pattern matching on types that contain uninhabited types.
@@ -488,8 +490,6 @@ declare_features! (
488490
(unstable, extern_system_varargs, "1.86.0", Some(136946)),
489491
/// Allows defining `extern type`s.
490492
(unstable, extern_types, "1.23.0", Some(43467)),
491-
/// Externally implementatble items
492-
(unstable, eii, "CURRENT_RUSTC_VERSION", Some(125418)),
493493
/// Allow using 128-bit (quad precision) floating point numbers.
494494
(unstable, f128, "1.78.0", Some(116909)),
495495
/// 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
@@ -1784,7 +1784,7 @@ pub(crate) mod builtin {
17841784
/// Externally Implementable Item: Defines an attribute macro that can override the item
17851785
/// this is applied to.
17861786
#[cfg(not(bootstrap))]
1787-
#[unstable(feature = "eii", issue = "none")]
1787+
#[unstable(feature = "eii", issue = "125418")]
17881788
#[rustc_builtin_macro]
17891789
#[allow_internal_unstable(eii_internals, decl_macro, rustc_attrs)]
17901790
pub macro eii($item:item) {
@@ -1794,7 +1794,7 @@ pub(crate) mod builtin {
17941794
/// Unsafely Externally Implementable Item: Defines an unsafe attribute macro that can override
17951795
/// the item this is applied to.
17961796
#[cfg(not(bootstrap))]
1797-
#[unstable(feature = "eii", issue = "none")]
1797+
#[unstable(feature = "eii", issue = "125418")]
17981798
#[rustc_builtin_macro]
17991799
#[allow_internal_unstable(eii_internals, decl_macro, rustc_attrs)]
18001800
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
@@ -119,7 +119,7 @@ pub use crate::macros::builtin::deref;
119119
)]
120120
pub use crate::macros::builtin::define_opaque;
121121

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

library/std/src/prelude/v1.rs

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

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

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)