]> git.lizzy.rs Git - rust.git/commitdiff
Point compile-fail errors to the input item instead of the derive
authorDavid Tolnay <dtolnay@gmail.com>
Thu, 8 Sep 2016 17:41:48 +0000 (10:41 -0700)
committerDavid Tolnay <dtolnay@gmail.com>
Thu, 8 Sep 2016 17:42:31 +0000 (10:42 -0700)
src/test/compile-fail-fulldeps/rustc-macro/append-impl.rs
src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable-2.rs
src/test/compile-fail-fulldeps/rustc-macro/expand-to-unstable.rs

index fa0b5763803ffd43c8a1fa15138ce63d11438924..1300fe66585c9e8cca4576a75848e11011aeeac5 100644 (file)
@@ -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,
 }
 
index 29b9fd228094a63717ef53f25203bcf8a8a69e6e..14c3d84e75be351f08c15485322b67073546e480 100644 (file)
@@ -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();
index 874081760f662f9f35625d0183b97e9a61050ece..aa9aaa8115628067c373dced2caf0966a3c82db4 100644 (file)
@@ -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(); }