Skip to content

Commit cfa3c97

Browse files
Rollup merge of rust-lang#155805 - shian15810:patch-1, r=mejrs
Mention `DEPRECATED_LLVM_INTRINSIC` lint for internal use Since `link_llvm_intrinsics` is an internal feature, having `deprecated_llvm_intrinsic` lint appearing in https://doc.rust-lang.org/nightly/rustc/lints/listing/allowed-by-default.html#deprecated-llvm-intrinsic without mentioning its internal nature is quite confusing to the end users. This PR improves the documentation of recently merged PR rust-lang#140763 that implemented `deprecated_llvm_intrinsic` lint by mentioning the internal nature of `deprecated_llvm_intrinsic` lint and `link_llvm_intrinsics` feature. Tracking issue of unstable `link_llvm_intrinsics` feature: rust-lang#29602
2 parents 3b76a4d + efaf460 commit cfa3c97

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

compiler/rustc_lint_defs/src/builtin.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5639,7 +5639,12 @@ declare_lint! {
56395639
/// LLVM periodically updates its list of intrinsics. Deprecated intrinsics are unlikely
56405640
/// to be removed, but they may optimize less well than their new versions, so it's
56415641
/// best to use the new version. Also, some deprecated intrinsics might have buggy
5642-
/// behavior
5642+
/// behavior.
5643+
///
5644+
/// This `link_llvm_intrinsics` lint is intended to be used internally only, and requires the
5645+
/// `#![feature(link_llvm_intrinsics)]` internal feature gate. For more information, see [its chapter in
5646+
/// the Unstable Book](https://doc.rust-lang.org/unstable-book/language-features/link-llvm-intrinsics.html)
5647+
/// and [its tracking issue](https://github.com/rust-lang/rust/issues/29602).
56435648
pub DEPRECATED_LLVM_INTRINSIC,
56445649
Allow,
56455650
"detects uses of deprecated LLVM intrinsics",

0 commit comments

Comments
 (0)