about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-18 14:49:19 +0200
committerGitHub <noreply@github.com>2025-07-18 14:49:19 +0200
commit82fbbddf633f104cbfac6f388fa96e0b94971ad9 (patch)
treed6c9a97f6a782036fef0c569f20e7eaafcb4d5ee /library/std/src
parent744ca5959a665e23e7e7b30ecf81d17c22223cc2 (diff)
parent68b415a0c4cfa054f275424db770d08227c09099 (diff)
downloadrust-82fbbddf633f104cbfac6f388fa96e0b94971ad9.tar.gz
rust-82fbbddf633f104cbfac6f388fa96e0b94971ad9.zip
Rollup merge of #143925 - oli-obk:slice-const-partialeq, r=fee1-dead
Make slice comparisons const

This needed a fix for `derive_const`, too, as it wasn't usable in libcore anymore as trait impls need const stability attributes. I think we can't use the same system as normal trait impls while `const_trait_impl` is still unstable.

r? ```@fee1-dead```

cc rust-lang/rust#143800
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/prelude/v1.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs
index 69f03353153..70c11131556 100644
--- a/library/std/src/prelude/v1.rs
+++ b/library/std/src/prelude/v1.rs
@@ -67,7 +67,7 @@ pub use core::prelude::v1::{
     alloc_error_handler, bench, derive, global_allocator, test, test_case,
 };
 
-#[unstable(feature = "derive_const", issue = "none")]
+#[unstable(feature = "derive_const", issue = "118304")]
 pub use core::prelude::v1::derive_const;
 
 // Do not `doc(no_inline)` either.