Skip to content

Commit 0b52901

Browse files
Update uitests
1 parent cf9ab2d commit 0b52901

17 files changed

Lines changed: 146 additions & 139 deletions

tests/pretty/delegation-inherit-attributes.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//@ pp-exact:delegation-inherit-attributes.pp
66

77
#![allow(incomplete_features)]
8-
#![feature(fn_delegation)]
8+
#![attr = Feature([fn_delegation#0])]
99
extern crate std;
1010
#[attr = PreludeImport]
1111
use std::prelude::rust_2021::*;

tests/pretty/delegation-inline-attribute.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//@ pp-exact:delegation-inline-attribute.pp
44

55
#![allow(incomplete_features)]
6-
#![feature(fn_delegation)]
6+
#![attr = Feature([fn_delegation#0])]
77
extern crate std;
88
#[attr = PreludeImport]
99
use ::std::prelude::rust_2015::*;

tests/pretty/hir-delegation.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//@ pp-exact:hir-delegation.pp
44

55
#![allow(incomplete_features)]
6-
#![feature(fn_delegation)]
6+
#![attr = Feature([fn_delegation#0])]
77
extern crate std;
88
#[attr = PreludeImport]
99
use ::std::prelude::rust_2015::*;

tests/pretty/hir-fn-variadic.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
#![attr = Feature([c_variadic#0])]
2+
extern crate std;
3+
#[attr = PreludeImport]
4+
use ::std::prelude::rust_2015::*;
15
//@ pretty-compare-only
26
//@ pretty-mode:hir
37
//@ pp-exact:hir-fn-variadic.pp
48

5-
#![feature(c_variadic)]
6-
extern crate std;
7-
#[attr = PreludeImport]
8-
use ::std::prelude::rust_2015::*;
99

1010
extern "C" {
1111
unsafe fn foo(x: i32, va1: ...);

tests/pretty/pin-ergonomics-hir.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
//@ pretty-mode:hir
33
//@ pp-exact:pin-ergonomics-hir.pp
44

5-
#![feature(pin_ergonomics)]
65
#![allow(dead_code, incomplete_features)]
6+
#![attr = Feature([pin_ergonomics#0])]
77
extern crate std;
88
#[attr = PreludeImport]
99
use ::std::prelude::rust_2015::*;

tests/ui/attributes/attr-mix-new.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#[rustc_dummy(bar)]
66
mod foo {
77
#![feature(globs)]
8-
//~^ WARN crate-level attribute should be in the root module
8+
//~^ WARN the `#![feature]` attribute can only be used at the crate root
99
}
1010

1111
fn main() {}

tests/ui/attributes/attr-mix-new.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: crate-level attribute should be in the root module
1+
warning: the `#![feature]` attribute can only be used at the crate root
22
--> $DIR/attr-mix-new.rs:7:3
33
|
44
LL | #![feature(globs)]

tests/ui/consts/const-block-items/hir.stdout

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//@ build-pass
2-
//@ compile-flags: -Zunpretty=hir
3-
4-
#![feature(const_block_items)]
1+
#![attr = Feature([const_block_items#0])]
52
extern crate std;
63
#[attr = PreludeImport]
74
use ::std::prelude::rust_2015::*;
5+
//@ build-pass
6+
//@ compile-flags: -Zunpretty=hir
7+
88

99
const _: () =
1010
{

tests/ui/empty/empty-attributes.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ LL | #![forbid()]
4343
|
4444
= note: attribute `forbid` with an empty list has no effect
4545

46-
error: unused attribute
47-
--> $DIR/empty-attributes.rs:7:1
48-
|
49-
LL | #![feature()]
50-
| ^^^^^^^^^^^^^ help: remove this attribute
51-
|
52-
= note: attribute `feature` with an empty list has no effect
53-
5446
error: unused attribute
5547
--> $DIR/empty-attributes.rs:9:1
5648
|
@@ -67,5 +59,13 @@ LL | #[target_feature()]
6759
|
6860
= note: using `target_feature` with an empty list has no effect
6961

62+
error: unused attribute
63+
--> $DIR/empty-attributes.rs:7:1
64+
|
65+
LL | #![feature()]
66+
| ^^^^^^^^^^^^^ help: remove this attribute
67+
|
68+
= note: using `feature` with an empty list has no effect
69+
7070
error: aborting due to 8 previous errors
7171

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#![forbid(unstable_features)]
22
#![feature(intrinsics)] //~ ERROR unstable feature
33

4-
fn main() { }
4+
fn main() {}

0 commit comments

Comments
 (0)