Mention DEPRECATED_LLVM_INTRINSIC lint for internal use

This commit is contained in:
Cheeshian Chuah
2026-04-26 11:05:05 +08:00
committed by GitHub
parent 68ffae46b5
commit efaf460224
+6 -1
View File
@@ -5639,7 +5639,12 @@
/// LLVM periodically updates its list of intrinsics. Deprecated intrinsics are unlikely
/// to be removed, but they may optimize less well than their new versions, so it's
/// best to use the new version. Also, some deprecated intrinsics might have buggy
/// behavior
/// behavior.
///
/// This `link_llvm_intrinsics` lint is intended to be used internally only, and requires the
/// `#![feature(link_llvm_intrinsics)]` internal feature gate. For more information, see [its chapter in
/// the Unstable Book](https://doc.rust-lang.org/unstable-book/language-features/link-llvm-intrinsics.html)
/// and [its tracking issue](https://github.com/rust-lang/rust/issues/29602).
pub DEPRECATED_LLVM_INTRINSIC,
Allow,
"detects uses of deprecated LLVM intrinsics",