Skip to content

Commit 04b9b7f

Browse files
Rollup merge of #163222 - AsakuraMizu:eii-gcc, r=BoxyUwU,GuillaumeGomez
Enable EII tests for cg_gcc
2 parents f0f6653 + f8f1dc2 commit 04b9b7f

57 files changed

Lines changed: 27 additions & 67 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/default/call_default.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//@ aux-build: decl_with_default.rs
44
//@ run-pass
55
//@ check-run-results
6-
//@ ignore-backends: gcc
76
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
87
//@ ignore-windows-gnu
98
// Tests EIIs with default implementations.

‎tests/ui/eii/default/call_default_panics.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//@ run-pass
66
//@ needs-unwind
77
//@ exec-env:RUST_BACKTRACE=1
8-
//@ ignore-backends: gcc
98
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
109
//@ ignore-windows-gnu
1110
// A small test to make sure that unwinding works properly.

‎tests/ui/eii/default/call_impl.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//@ aux-build: impl1.rs
55
//@ run-pass
66
//@ check-run-results
7-
//@ ignore-backends: gcc
87
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
98
//@ ignore-windows-gnu
109
// Tests EIIs with default implementations.

‎tests/ui/eii/default/local_crate.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ run-pass
22
//@ check-run-results
3-
//@ ignore-backends: gcc
43
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
54
//@ ignore-windows-gnu
65
// Tests EIIs with default implementations.

‎tests/ui/eii/default/local_crate_explicit.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@ run-pass
22
//@ check-run-results
3-
//@ ignore-backends: gcc
43
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
54
//@ ignore-windows-gnu
65
// Tests EIIs with default implementations.

‎tests/ui/eii/default/local_crate_explicit.stderr‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: function `decl1` is never used
2-
--> $DIR/local_crate_explicit.rs:11:8
2+
--> $DIR/local_crate_explicit.rs:10:8
33
|
44
LL | pub fn decl1(x: u64) {
55
| ^^^^^

‎tests/ui/eii/duplicate/both_decl_and_impl.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//@ ignore-backends: gcc
21
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
32
//@ ignore-windows-gnu
43
// Tests that one item can't both define and impl an EII at the same time

‎tests/ui/eii/duplicate/both_decl_and_impl.stderr‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
error: a single item cannot both declare and implement EIIs
2-
--> $DIR/both_decl_and_impl.rs:11:1
2+
--> $DIR/both_decl_and_impl.rs:10:1
33
|
44
LL | #[eii]
55
| ^^^^^^
66

77
error: only a small subset of attributes are supported on externally implementable items
8-
--> $DIR/both_decl_and_impl.rs:21:1
8+
--> $DIR/both_decl_and_impl.rs:20:1
99
|
1010
LL | fn d(x: u64) {}
1111
| ^^^^^^^^^^^^
1212
|
1313
note: this attribute is not supported
14-
--> $DIR/both_decl_and_impl.rs:20:1
14+
--> $DIR/both_decl_and_impl.rs:19:1
1515
|
1616
LL | #[c]
1717
| ^^^^
1818

1919
error: `#[c]` function required, but not found
20-
--> $DIR/both_decl_and_impl.rs:16:4
20+
--> $DIR/both_decl_and_impl.rs:15:4
2121
|
2222
LL | fn c(x: u64);
2323
| ^ expected because `#[c]` was declared here in crate `both_decl_and_impl`

‎tests/ui/eii/duplicate/duplicate1.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//@[dylib] needs-crate-type: dylib
33
//@ aux-build: impl1.rs
44
//@ aux-build: impl2.rs
5-
//@ ignore-backends: gcc
65
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
76
//@ ignore-windows-gnu
87
// tests that EIIs error properly, even if the conflicting implementations live in another crate.

‎tests/ui/eii/duplicate/duplicate2.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ aux-build: impl1.rs
22
//@ aux-build: impl2.rs
33
//@ aux-build: impl3.rs
4-
//@ ignore-backends: gcc
54
// FIXME(#125418): linking on Windows GNU targets is not yet supported.
65
//@ ignore-windows-gnu
76
// Tests the error message when there are multiple implementations of an EII in many crates.

0 commit comments

Comments
 (0)