Point compile-fail errors to the input item instead of the derive

This commit is contained in:
David Tolnay 2016-09-08 10:41:48 -07:00
parent 3784067edc
commit 707a40f206
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 3 additions and 3 deletions

View 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,
}

View 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();

View 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(); }