Skip to content

Commit 6b9a16f

Browse files
committed
Clarify why target_feature is not allowed on the implementation of safe trait methods.
1 parent a81b5a6 commit 6b9a16f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/0000-target-feature-1.1.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ The `#[target_feature]` attribute continues to be allowed on inherent methods -
128128
this RFC does not change that.
129129

130130
The `#[target_feature]` attribute continues to not be allowed on safe trait
131-
method implementations:
131+
method implementations because that would require an `unsafe` trait method
132+
declaration:
132133

133134
```rust
134135
// Example 2:

0 commit comments

Comments
 (0)