Skip to content

Commit 707a40f

Browse files
committed
Point compile-fail errors to the input item instead of the derive
1 parent 3784067 commit 707a40f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/compile-fail-fulldeps/rustc-macro/append-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ trait Append {
2323
#[derive(PartialEq,
2424
Append,
2525
Eq)]
26-
//~^^ ERROR: the semantics of constant patterns is not yet settled
2726
struct A {
27+
//~^ ERROR: the semantics of constant patterns is not yet settled
2828
inner: u32,
2929
}
3030

src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
extern crate derive_unstable_2;
1818

1919
#[derive(Unstable)]
20-
//~^ ERROR: reserved for internal compiler
2120
struct A;
21+
//~^ ERROR: reserved for internal compiler
2222

2323
fn main() {
2424
foo();

src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
extern crate derive_unstable;
1818

1919
#[derive(Unstable)]
20-
//~^ ERROR: use of unstable library feature
2120
struct A;
21+
//~^ ERROR: use of unstable library feature
2222

2323
fn main() {
2424
unsafe { foo(); }

0 commit comments

Comments
 (0)