Separately gate each target_feature feature
Use an explicit whitelist for what features are actually stable and can be enabled.
This commit is contained in:
parent
598d836fff
commit
1217d70465
14 changed files with 216 additions and 68 deletions
|
@ -19,7 +19,7 @@
|
|||
#![feature(target_feature)]
|
||||
|
||||
#[target_feature = "+sse2"]
|
||||
//~^ WARN: deprecated
|
||||
//~^ ERROR: must be of the form
|
||||
#[target_feature(enable = "foo")]
|
||||
//~^ ERROR: not valid for this target
|
||||
#[target_feature(bar)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue