1
Fork 0

Implement intrinsics with fallback bodies

This commit is contained in:
Oli Scherer 2024-01-30 16:03:58 +00:00
parent 0eee945680
commit 92281c7e81
12 changed files with 137 additions and 82 deletions

View file

@ -788,6 +788,10 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
rustc_safe_intrinsic, Normal, template!(Word), WarnFollowing,
"the `#[rustc_safe_intrinsic]` attribute is used internally to mark intrinsics as safe"
),
rustc_attr!(
rustc_intrinsic, Normal, template!(Word), ErrorFollowing,
"the `#[rustc_intrinsic]` attribute is used to declare intrinsics with function bodies",
),
// ==========================================================================
// Internal attributes, Testing: