about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2016-09-08 10:41:48 -0700
committerDavid Tolnay <dtolnay@gmail.com>2016-09-08 10:42:31 -0700
commit707a40f2065cb46d12c4f4991e6408585b315c92 (patch)
treeef1f20f67fce0f633393bc8e4db0d93550755f24
parent3784067edcbcd0614f6c4c88f6445ca17ae27ff6 (diff)
downloadrust-707a40f2065cb46d12c4f4991e6408585b315c92.tar.gz
rust-707a40f2065cb46d12c4f4991e6408585b315c92.zip
Point compile-fail errors to the input item instead of the derive
-rw-r--r--src/test/compile-fail-fulldeps/rustc-macro/append-impl.rs2
-rw-r--r--src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable-2.rs2
-rw-r--r--src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/compile-fail-fulldeps/rustc-macro/append-impl.rs b/src/test/compile-fail-fulldeps/rustc-macro/append-impl.rs
index fa0b5763803..1300fe66585 100644
--- a/src/test/compile-fail-fulldeps/rustc-macro/append-impl.rs
+++ b/src/test/compile-fail-fulldeps/rustc-macro/append-impl.rs
@@ -23,8 +23,8 @@ trait Append {
 #[derive(PartialEq,
          Append,
          Eq)]
-//~^^ ERROR: the semantics of constant patterns is not yet settled
 struct A {
+//~^ ERROR: the semantics of constant patterns is not yet settled
     inner: u32,
 }
 
diff --git a/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable-2.rs b/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable-2.rs
index 29b9fd22809..14c3d84e75b 100644
--- a/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable-2.rs
+++ b/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable-2.rs
@@ -17,8 +17,8 @@
 extern crate derive_unstable_2;
 
 #[derive(Unstable)]
-//~^ ERROR: reserved for internal compiler
 struct A;
+//~^ ERROR: reserved for internal compiler
 
 fn main() {
     foo();
diff --git a/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable.rs b/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable.rs
index 874081760f6..aa9aaa81156 100644
--- a/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable.rs
+++ b/src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable.rs
@@ -17,8 +17,8 @@
 extern crate derive_unstable;
 
 #[derive(Unstable)]
-//~^ ERROR: use of unstable library feature
 struct A;
+//~^ ERROR: use of unstable library feature
 
 fn main() {
     unsafe { foo(); }