We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af06d0 commit 7585802Copy full SHA for 7585802
compiler/rustc_middle/src/ty/util.rs
@@ -1538,7 +1538,7 @@ pub fn is_doc_notable_trait(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
1538
.any(|items| items.iter().any(|item| item.has_name(sym::notable_trait)))
1539
}
1540
1541
-/// Determines whether an item is an intrinsic by Abi.
+/// Determines whether an item is an intrinsic by Abi. or by whether it has a `rustc_intrinsic` attribute
1542
pub fn intrinsic(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<Symbol> {
1543
if matches!(tcx.fn_sig(def_id).skip_binder().abi(), Abi::RustIntrinsic | Abi::PlatformIntrinsic)
1544
|| tcx.has_attr(def_id, sym::rustc_intrinsic)
0 commit comments