Skip to content

Commit fca29ad

Browse files
Uitests for external statics
1 parent c7e194f commit fca29ad

48 files changed

Lines changed: 473 additions & 48 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/ui/eii/attribute_targets.stderr

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,106 @@
1-
error: `#[foo]` is only valid on functions
1+
error: `#[foo]` is only valid on functions and statics
22
--> $DIR/attribute_targets.rs:7:1
33
|
44
LL | #[foo]
55
| ^^^^^^
66

7-
error: `#[eii]` is only valid on functions
7+
error: `#[eii]` is only valid on functions and statics
88
--> $DIR/attribute_targets.rs:9:1
99
|
1010
LL | #[eii]
1111
| ^^^^^^
1212

13-
error: `#[foo]` is only valid on functions
13+
error: `#[foo]` is only valid on functions and statics
1414
--> $DIR/attribute_targets.rs:13:1
1515
|
1616
LL | #[foo]
1717
| ^^^^^^
1818

19-
error: `#[eii]` is only valid on functions
19+
error: `#[eii]` is only valid on functions and statics
2020
--> $DIR/attribute_targets.rs:15:1
2121
|
2222
LL | #[eii]
2323
| ^^^^^^
2424

25-
error: `#[foo]` is only valid on functions
25+
error: `#[foo]` is only valid on functions and statics
2626
--> $DIR/attribute_targets.rs:21:1
2727
|
2828
LL | #[foo]
2929
| ^^^^^^
3030

31-
error: `#[eii]` is only valid on functions
31+
error: `#[eii]` is only valid on functions and statics
3232
--> $DIR/attribute_targets.rs:23:1
3333
|
3434
LL | #[eii]
3535
| ^^^^^^
3636

37-
error: `#[foo]` is only valid on functions
37+
error: `#[foo]` is only valid on functions and statics
3838
--> $DIR/attribute_targets.rs:27:1
3939
|
4040
LL | #[foo]
4141
| ^^^^^^
4242

43-
error: `#[eii]` is only valid on functions
43+
error: `#[eii]` is only valid on functions and statics
4444
--> $DIR/attribute_targets.rs:29:1
4545
|
4646
LL | #[eii]
4747
| ^^^^^^
4848

49-
error: `#[foo]` is only valid on functions
49+
error: `#[foo]` is only valid on functions and statics
5050
--> $DIR/attribute_targets.rs:32:5
5151
|
5252
LL | #[foo]
5353
| ^^^^^^
5454

55-
error: `#[eii]` is only valid on functions
55+
error: `#[eii]` is only valid on functions and statics
5656
--> $DIR/attribute_targets.rs:34:5
5757
|
5858
LL | #[eii]
5959
| ^^^^^^
6060

61-
error: `#[foo]` is only valid on functions
61+
error: `#[foo]` is only valid on functions and statics
6262
--> $DIR/attribute_targets.rs:39:1
6363
|
6464
LL | #[foo]
6565
| ^^^^^^
6666

67-
error: `#[eii]` is only valid on functions
67+
error: `#[eii]` is only valid on functions and statics
6868
--> $DIR/attribute_targets.rs:41:1
6969
|
7070
LL | #[eii]
7171
| ^^^^^^
7272

73-
error: `#[foo]` is only valid on functions
73+
error: `#[foo]` is only valid on functions and statics
7474
--> $DIR/attribute_targets.rs:44:5
7575
|
7676
LL | #[foo]
7777
| ^^^^^^
7878

79-
error: `#[eii]` is only valid on functions
79+
error: `#[eii]` is only valid on functions and statics
8080
--> $DIR/attribute_targets.rs:46:5
8181
|
8282
LL | #[eii]
8383
| ^^^^^^
8484

85-
error: `#[foo]` is only valid on functions
85+
error: `#[foo]` is only valid on functions and statics
8686
--> $DIR/attribute_targets.rs:51:1
8787
|
8888
LL | #[foo]
8989
| ^^^^^^
9090

91-
error: `#[eii]` is only valid on functions
91+
error: `#[eii]` is only valid on functions and statics
9292
--> $DIR/attribute_targets.rs:53:1
9393
|
9494
LL | #[eii]
9595
| ^^^^^^
9696

97-
error: `#[foo]` is only valid on functions
97+
error: `#[foo]` is only valid on functions and statics
9898
--> $DIR/attribute_targets.rs:56:5
9999
|
100100
LL | #[foo]
101101
| ^^^^^^
102102

103-
error: `#[eii]` is only valid on functions
103+
error: `#[eii]` is only valid on functions and statics
104104
--> $DIR/attribute_targets.rs:58:5
105105
|
106106
LL | #[eii]

tests/ui/eii/default/call_default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//@ run-pass
44
//@ check-run-results
55
//@ ignore-backends: gcc
6-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
6+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
77
//@ ignore-windows
88
// Tests EIIs with default implementations.
99
// When there's no explicit declaration, the default should be called from the declaring crate.

tests/ui/eii/default/call_default_panics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//@ needs-unwind
66
//@ exec-env:RUST_BACKTRACE=1
77
//@ ignore-backends: gcc
8-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
8+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
99
//@ ignore-windows
1010
// A small test to make sure that unwinding works properly.
1111
//

tests/ui/eii/default/call_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ run-pass
55
//@ check-run-results
66
//@ ignore-backends: gcc
7-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
7+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
88
//@ ignore-windows
99
// Tests EIIs with default implementations.
1010
// When an explicit implementation is given in one dependency, and the declaration is in another,

tests/ui/eii/default/local_crate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ run-pass
22
//@ check-run-results
33
//@ ignore-backends: gcc
4-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
4+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
55
//@ ignore-windows
66
// Tests EIIs with default implementations.
77
// In the same crate, when there's no explicit declaration, the default should be called.

tests/ui/eii/default/local_crate_explicit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ run-pass
22
//@ check-run-results
33
//@ ignore-backends: gcc
4-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
4+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
55
//@ ignore-windows
66
// Tests EIIs with default implementations.
77
// In the same crate, the explicit implementation should get priority.

tests/ui/eii/duplicate/duplicate1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ aux-build: impl1.rs
33
//@ aux-build: impl2.rs
44
//@ ignore-backends: gcc
5-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
5+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
66
//@ ignore-windows
77
// tests that EIIs error properly, even if the conflicting implementations live in another crate.
88
#![feature(extern_item_impls)]

tests/ui/eii/duplicate/duplicate2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//@ aux-build: impl2.rs
44
//@ aux-build: impl3.rs
55
//@ ignore-backends: gcc
6-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
6+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
77
//@ ignore-windows
88
// Tests the error message when there are multiple implementations of an EII in many crates.
99
#![feature(extern_item_impls)]

tests/ui/eii/duplicate/duplicate3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ aux-build: impl3.rs
55
//@ aux-build: impl4.rs
66
//@ ignore-backends: gcc
7-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
7+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
88
//@ ignore-windows
99
// Tests the error message when there are multiple implementations of an EII in many crates.
1010
#![feature(extern_item_impls)]

tests/ui/eii/duplicate/multiple_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ run-pass
22
//@ check-run-results
33
//@ ignore-backends: gcc
4-
// FIXME: linking on windows (speciifcally mingw) not yet supported, see tracking issue #125418
4+
// FIXME: linking on windows (specifically mingw) not yet supported, see tracking issue #125418
55
//@ ignore-windows
66
// Tests whether one function could implement two EIIs.
77
#![feature(extern_item_impls)]

0 commit comments

Comments
 (0)