File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,8 @@ The following is a list of the available feature names.
75
75
76
76
#### ` x86 ` or ` x86_64 `
77
77
78
- This platform requires that ` #[target_feature] ` is only applied to [ ` unsafe `
78
+ Executing code with unsupported features is UB on this platform.
79
+ Hence this platform requires that ` #[target_feature] ` is only applied to [ ` unsafe `
79
80
functions] [ unsafe function ] .
80
81
81
82
Feature | Implicitly Enables | Description
@@ -133,7 +134,8 @@ Feature | Implicitly Enables | Description
133
134
134
135
#### ` wasm32 ` or ` wasm64 `
135
136
136
- This platform allows ` #[target_feature] ` to be applied to both safe and
137
+ Executing code with unsupported features is allowed (i.e., is not UB) on this platform.
138
+ Hence this platform allows ` #[target_feature] ` to be applied to both safe and
137
139
[ ` unsafe ` functions] [ unsafe function ] .
138
140
139
141
Feature | Description
Original file line number Diff line number Diff line change 33
33
is immutable, unless that data is contained within an [ ` UnsafeCell<U> ` ] .
34
34
* Invoking undefined behavior via compiler intrinsics.
35
35
* Executing code compiled with platform features that the current platform
36
- does not support (see [ ` target_feature ` ] ).
36
+ does not support (see [ ` target_feature ` ] ), * except * if the platform explicitly documents this to be safe .
37
37
* Calling a function with the wrong call ABI or unwinding from a function with the wrong unwind ABI.
38
38
* Producing an invalid value, even in private fields and locals. "Producing" a
39
39
value happens any time a value is assigned to or read from a place, passed to
You can’t perform that action at this time.
0 commit comments