about summary refs log tree commit diff
path: root/library/alloc/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-23 06:45:58 +0000
committerbors <bors@rust-lang.org>2024-01-23 06:45:58 +0000
commite35a56d96f7d9d4422f2b7b00bf0bf282b2ec782 (patch)
treedae003e9517d57f7f1029a94bf136b1b21cc877f /library/alloc/src/lib.rs
parent0011fac90d2846ea3c04506238ff6e4ed3ce0efe (diff)
parent638439a4404d9ef2da4027585134487875787e1d (diff)
Auto merge of #119892 - joboet:libs_use_assert_unchecked, r=Nilstrieb,cuviper
Use `assert_unchecked` instead of `assume` intrinsic in the standard library

Now that a public wrapper for the `assume` intrinsic exists, we can use it in the standard library.

CC #119131
Diffstat (limited to 'library/alloc/src/lib.rs')
-rw-r--r--library/alloc/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs
index 78629b39d34..02ecbe22b3e 100644
--- a/library/alloc/src/lib.rs
+++ b/library/alloc/src/lib.rs
@@ -129,6 +129,7 @@
 #![feature(fmt_internals)]
 #![feature(fn_traits)]
 #![feature(hasher_prefixfree_extras)]
+#![feature(hint_assert_unchecked)]
 #![feature(inline_const)]
 #![feature(inplace_iteration)]
 #![feature(iter_advance_by)]