1
Fork 0

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:
Alex Crichton 2018-04-05 08:02:11 -07:00
parent 598d836fff
commit 1217d70465
14 changed files with 216 additions and 68 deletions

View file

@ -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)]