Skip to content

Commit 7585802

Browse files
committed
Doc comment update
1 parent 5af06d0 commit 7585802

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ pub fn is_doc_notable_trait(tcx: TyCtxt<'_>, def_id: DefId) -> bool {
15381538
.any(|items| items.iter().any(|item| item.has_name(sym::notable_trait)))
15391539
}
15401540

1541-
/// Determines whether an item is an intrinsic by Abi.
1541+
/// Determines whether an item is an intrinsic by Abi. or by whether it has a `rustc_intrinsic` attribute
15421542
pub fn intrinsic(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<Symbol> {
15431543
if matches!(tcx.fn_sig(def_id).skip_binder().abi(), Abi::RustIntrinsic | Abi::PlatformIntrinsic)
15441544
|| tcx.has_attr(def_id, sym::rustc_intrinsic)

0 commit comments

Comments
 (0)