]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/hint.rs
Auto merge of #105701 - RedDocMD:bug-105634, r=cjgillot
[rust.git] / library / core / src / hint.rs
index c53175ba4f3f0f7bb23c701eda24d79abfae5926..e8d724ab1ef4eed662ac5ab2810878e6ee8e2904 100644 (file)
 /// ```
 ///
 /// [`thread::yield_now`]: ../../std/thread/fn.yield_now.html
-#[inline]
+#[inline(always)]
 #[stable(feature = "renamed_spin_loop", since = "1.49.0")]
 pub fn spin_loop() {
     #[cfg(target_arch = "x86")]
@@ -345,6 +345,7 @@ pub const fn black_box<T>(dummy: T) -> T {
 #[unstable(feature = "hint_must_use", issue = "94745")]
 #[rustc_const_unstable(feature = "hint_must_use", issue = "94745")]
 #[must_use] // <-- :)
+#[inline(always)]
 pub const fn must_use<T>(value: T) -> T {
     value
 }