Skip to content

Commit 4715094

Browse files
committed
broken tests after rebase?
1 parent eada979 commit 4715094

File tree

12 files changed

+23
-12
lines changed

12 files changed

+23
-12
lines changed

compiler/rustc_builtin_macros/src/eii.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn eii_(
204204
id: ast::DUMMY_NODE_ID,
205205
span,
206206
vis: ast::Visibility { span, kind: ast::VisibilityKind::Inherited, tokens: None },
207-
ident: Ident::dummy(),
207+
ident: Ident::empty(),
208208
kind: ast::ItemKind::ForeignMod(ast::ForeignMod {
209209
extern_span: span,
210210
safety: ast::Safety::Unsafe(span),

tests/ui/eii/auxiliary/codegen3.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
#[eii(eii1)]
77
fn decl1(x: u64);
88

9-
#[eii(eii2)] //~ ERROR couldn't find an implementation for `#[eii2]`
9+
#[eii(eii2)]
1010
pub fn decl2(x: u64);
1111

1212
mod private {
13-
#[eii(eii3)] //~ ERROR couldn't find an implementation for `#[eii3]`
13+
#[eii(eii3)]
1414
pub fn decl3(x: u64);
1515
}
1616

tests/ui/eii/duplicate/auxiliary/impl1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
extern crate decl;
77

88

9-
#[unsafe(decl::eii1)] //~ ERROR multiple implementations of `#[eii1]`
9+
#[unsafe(decl::eii1)]
1010
fn other(x: u64) {
1111
println!("1{x}");
1212
}

tests/ui/eii/duplicate/duplicate1.rs

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
//@ aux-build: impl2.rs
44
#![feature(eii)]
55

6+
// has a span but in the other crate
7+
//~? ERROR multiple implementations of `#[eii1]`
8+
69
extern crate impl1;
710
extern crate impl2;
811

tests/ui/eii/duplicate/duplicate1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | fn other(x: u64) {
99
LL | fn other(x: u64) {
1010
| ---------------- also implemented here in crate `impl2`
1111
|
12-
= help: an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict.
12+
= help: an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict
1313

1414
error: aborting due to 1 previous error
1515

tests/ui/eii/duplicate/duplicate2.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//@ aux-build: impl3.rs
55
#![feature(eii)]
66

7+
// has a span but in the other crate
8+
//~? ERROR multiple implementations of `#[eii1]`
9+
710
extern crate impl1;
811
extern crate impl2;
912
extern crate impl3;

tests/ui/eii/duplicate/duplicate2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | fn other(x: u64) {
1010
| ---------------- also implemented here in crate `impl2`
1111
|
1212
= note: in addition to these two, another implementation was found in crate `impl3`
13-
= help: an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict.
13+
= help: an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict
1414

1515
error: aborting due to 1 previous error
1616

tests/ui/eii/duplicate/duplicate3.rs

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
//@ aux-build: impl4.rs
66
#![feature(eii)]
77

8+
// has a span but in the other crate
9+
//~? ERROR multiple implementations of `#[eii1]`
10+
811
extern crate impl1;
912
extern crate impl2;
1013
extern crate impl3;

tests/ui/eii/duplicate/duplicate3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | fn other(x: u64) {
1010
| ---------------- also implemented here in crate `impl2`
1111
|
1212
= note: in addition to these two, more implementations were also found in the following crates: `impl3`, `impl4`
13-
= help: an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict.
13+
= help: an "externally implementable item" can only have a single implementation in the final artifact. When multiple implementations are found, also in different crates, they conflict
1414

1515
error: aborting due to 1 previous error
1616

tests/ui/eii/errors.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ error: `#[eii_macro_for(...)]` expects a list of one or two elements
2222
LL | #[eii_macro_for()]
2323
| ^^^^^^^^^^^^^^^^^^
2424

25-
error: expected this argument to be "unsafe".
25+
error: expected this argument to be "unsafe"
2626
--> $DIR/errors.rs:15:22
2727
|
2828
LL | #[eii_macro_for(bar, hello)]

tests/ui/eii/privacy2.rs

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
extern crate codegen3 as codegen;
55

6+
// has a span but in the other crate
7+
//~? ERROR couldn't find an implementation for `#[eii2]`
8+
//~? ERROR couldn't find an implementation for `#[eii3]`
9+
610
#[codegen::eii1]
711
fn eii1_impl(x: u64) {
812
println!("{x:?}")

tests/ui/eii/privacy2.stderr

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0433]: failed to resolve: could not find `eii3` in `codegen`
2-
--> $DIR/privacy2.rs:11:12
2+
--> $DIR/privacy2.rs:15:12
33
|
44
LL | #[codegen::eii3]
55
| ^^^^ could not find `eii3` in `codegen`
66

77
error[E0603]: function `decl1` is private
8-
--> $DIR/privacy2.rs:21:14
8+
--> $DIR/privacy2.rs:25:14
99
|
1010
LL | codegen::decl1(42);
1111
| ^^^^^ private function
@@ -23,7 +23,6 @@ LL | #[eii(eii2)]
2323
| ^^^^^^^^^^^^ an implementation was expected by this declaration
2424
|
2525
= help: expected at least one implementation in crate `privacy2` or any of its dependencies
26-
= note: this error originates in the attribute macro `eii` (in Nightly builds, run with -Z macro-backtrace for more info)
2726

2827
error: couldn't find an implementation for `#[eii3]`
2928
--> $DIR/auxiliary/codegen3.rs:13:5
@@ -32,7 +31,6 @@ LL | #[eii(eii3)]
3231
| ^^^^^^^^^^^^ an implementation was expected by this declaration
3332
|
3433
= help: expected at least one implementation in crate `privacy2` or any of its dependencies
35-
= note: this error originates in the attribute macro `eii` (in Nightly builds, run with -Z macro-backtrace for more info)
3634

3735
error: aborting due to 4 previous errors
3836

0 commit comments

Comments
 (0)