From 2b201cfb1b200cb2065cf0062f35c95ebd3e2862 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Tue, 30 Dec 2025 15:46:40 +0100 Subject: [PATCH] experiment: Add simple externally implementable item to std This gives lots of strange compilation errors. See https://gist.github.com/Enselic/c643f454515db6f10caa7ab04045ab32 for the full list. --- library/std/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 0dab29712f4fc..777bf53d69f9c 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -283,6 +283,7 @@ #![feature(doc_masked)] #![feature(doc_notable_trait)] #![feature(dropck_eyepatch)] +#![feature(extern_item_impls)] #![feature(f16)] #![feature(f128)] #![feature(ffi_const)] @@ -760,3 +761,9 @@ mod sealed { #[cfg(test)] #[allow(dead_code)] // Not used in all configurations. pub(crate) mod test_helpers; + +#[unstable(feature = "extern_item_impls", issue = "125418")] +#[eii] +pub fn changed_with_eii() -> bool { + false +}