Stabilize #![feature(target_feature_11)]
This commit is contained in:
parent
0d32c8f2ce
commit
b379d216ee
28 changed files with 78 additions and 151 deletions
|
@ -25,12 +25,6 @@
|
|||
//~^ ERROR malformed `target_feature` attribute
|
||||
unsafe fn foo() {}
|
||||
|
||||
#[target_feature(enable = "sse2")]
|
||||
//~^ ERROR `#[target_feature(..)]` can only be applied to `unsafe` functions
|
||||
//~| NOTE see issue #69098
|
||||
fn bar() {}
|
||||
//~^ NOTE not an `unsafe` function
|
||||
|
||||
#[target_feature(enable = "sse2")]
|
||||
//~^ ERROR attribute should be applied to a function
|
||||
mod another {}
|
||||
|
@ -75,8 +69,8 @@ trait Quux {
|
|||
|
||||
impl Quux for Foo {
|
||||
#[target_feature(enable = "sse2")]
|
||||
//~^ ERROR `#[target_feature(..)]` can only be applied to `unsafe` functions
|
||||
//~| NOTE see issue #69098
|
||||
//~^ ERROR `#[target_feature(..)]` cannot be applied to safe trait method
|
||||
//~| NOTE cannot be applied to safe trait method
|
||||
fn foo() {}
|
||||
//~^ NOTE not an `unsafe` function
|
||||
}
|
||||
|
@ -86,9 +80,8 @@ fn main() {
|
|||
//~^ ERROR attribute should be applied to a function
|
||||
unsafe {
|
||||
foo();
|
||||
bar();
|
||||
}
|
||||
//~^^^^ NOTE not a function
|
||||
//~^^^ NOTE not a function
|
||||
|
||||
#[target_feature(enable = "sse2")]
|
||||
//~^ ERROR attribute should be applied to a function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue