Skip to content

Commit ec933d3

Browse files
committed
Add target_feature to unsafety list
1 parent 3ced4db commit ec933d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unsafety.md

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ r[safety.unsafe-union-access]
2121
r[safety.unsafe-call]
2222
- Calling an unsafe function (including an intrinsic or foreign function).
2323

24+
r[safety.unsafe-target-feature-call]
25+
- Calling a safe function marked with a [`target_feature`][attributes.codegen.target_feature] from a function that does not have a `target_feature` attribute enabling the same features (see [attributes.codegen.target_feature.safety-restrictions]).
26+
2427
r[safety.unsafe-impl]
2528
- Implementing an [unsafe trait].
2629

0 commit comments

Comments
 (0)