about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-09-14 13:44:02 +0200
committerRalf Jung <post@ralfj.de>2024-10-21 15:22:17 +0100
commit56ee492a6e7a917b2b3f888e33dd52a13d3ecb64 (patch)
tree556522c0acb1a55afe973cc12a848f3729783f35 /library/alloc/src
parentc3e928d8ddc73f5681778208f6c44cf958694e8b (diff)
downloadrust-56ee492a6e7a917b2b3f888e33dd52a13d3ecb64.tar.gz
rust-56ee492a6e7a917b2b3f888e33dd52a13d3ecb64.zip
move strict provenance lints to new feature gate, remove old feature gates
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index ae9b3739858..50a5f3c5b1e 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -147,7 +147,6 @@
 #![feature(slice_range)]
 #![feature(std_internals)]
 #![feature(str_internals)]
-#![feature(strict_provenance)]
 #![feature(trusted_fused)]
 #![feature(trusted_len)]
 #![feature(trusted_random_access)]
@@ -162,6 +161,8 @@
 //
 // Language features:
 // tidy-alphabetical-start
+#![cfg_attr(bootstrap, feature(strict_provenance))]
+#![cfg_attr(not(bootstrap), feature(strict_provenance_lints))]
 #![cfg_attr(not(test), feature(coroutine_trait))]
 #![cfg_attr(test, feature(panic_update_hook))]
 #![cfg_attr(test, feature(test))]