diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-08-12 12:26:38 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-08-12 12:26:38 -0700 |
| commit | 5ae3801c8d9d9859b23686831ae2f405b550ec10 (patch) | |
| tree | 45fe793a5adcff0cfba98152924b583f520ef9bb /src/test | |
| parent | 0aa8d0320266b5579428312095fe49af05ada972 (diff) | |
| download | rust-5ae3801c8d9d9859b23686831ae2f405b550ec10.tar.gz rust-5ae3801c8d9d9859b23686831ae2f405b550ec10.zip | |
Various changes to `rustc_on_unimplemented`
- Add `from_method` and `from_desugaring` to formatting options - Change wording of errors slightly
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/error-codes/E0232.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/on-unimplemented/bad-annotation.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/on-unimplemented/bad-annotation.stderr | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/test/ui/error-codes/E0232.stderr b/src/test/ui/error-codes/E0232.stderr index cb6cc44a735..613b359c299 100644 --- a/src/test/ui/error-codes/E0232.stderr +++ b/src/test/ui/error-codes/E0232.stderr @@ -4,7 +4,7 @@ error[E0232]: `#[rustc_on_unimplemented]` requires a value LL | #[rustc_on_unimplemented] | ^^^^^^^^^^^^^^^^^^^^^^^^^ value required here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` error: aborting due to previous error diff --git a/src/test/ui/on-unimplemented/bad-annotation.rs b/src/test/ui/on-unimplemented/bad-annotation.rs index 7ef155e5f2e..286c71bb299 100644 --- a/src/test/ui/on-unimplemented/bad-annotation.rs +++ b/src/test/ui/on-unimplemented/bad-annotation.rs @@ -28,7 +28,7 @@ trait BadAnnotation1 {} #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"] -//~^ ERROR there is no parameter C on trait BadAnnotation2 +//~^ ERROR there is no parameter `C` on trait `BadAnnotation2` trait BadAnnotation2<A,B> {} diff --git a/src/test/ui/on-unimplemented/bad-annotation.stderr b/src/test/ui/on-unimplemented/bad-annotation.stderr index 1c5d4d603af..212eb125f85 100644 --- a/src/test/ui/on-unimplemented/bad-annotation.stderr +++ b/src/test/ui/on-unimplemented/bad-annotation.stderr @@ -4,9 +4,9 @@ error[E0232]: `#[rustc_on_unimplemented]` requires a value LL | #[rustc_on_unimplemented] //~ ERROR `#[rustc_on_unimplemented]` requires a value | ^^^^^^^^^^^^^^^^^^^^^^^^^ value required here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` -error[E0230]: there is no parameter C on trait BadAnnotation2 +error[E0230]: there is no parameter `C` on trait `BadAnnotation2` --> $DIR/bad-annotation.rs:30:1 | LL | #[rustc_on_unimplemented = "Unimplemented trait error on `{Self}` with params `<{A},{B},{C}>`"] @@ -24,7 +24,7 @@ error[E0232]: this attribute must have a valid value LL | #[rustc_on_unimplemented(lorem="")] | ^^^^^^^^ expected value here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` error[E0232]: this attribute must have a valid value --> $DIR/bad-annotation.rs:44:26 @@ -32,7 +32,7 @@ error[E0232]: this attribute must have a valid value LL | #[rustc_on_unimplemented(lorem(ipsum(dolor)))] | ^^^^^^^^^^^^^^^^^^^ expected value here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` error[E0232]: this attribute must have a valid value --> $DIR/bad-annotation.rs:48:39 @@ -40,7 +40,7 @@ error[E0232]: this attribute must have a valid value LL | #[rustc_on_unimplemented(message="x", message="y")] | ^^^^^^^^^^^ expected value here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` error[E0232]: this attribute must have a valid value --> $DIR/bad-annotation.rs:52:39 @@ -48,7 +48,7 @@ error[E0232]: this attribute must have a valid value LL | #[rustc_on_unimplemented(message="x", on(desugared, message="y"))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` error[E0232]: empty `on`-clause in `#[rustc_on_unimplemented]` --> $DIR/bad-annotation.rs:56:26 @@ -62,7 +62,7 @@ error[E0232]: this attribute must have a valid value LL | #[rustc_on_unimplemented(on="x", message="y")] | ^^^^^^ expected value here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` error[E0232]: this attribute must have a valid value --> $DIR/bad-annotation.rs:67:40 @@ -70,7 +70,7 @@ error[E0232]: this attribute must have a valid value LL | #[rustc_on_unimplemented(on(desugared, on(desugared, message="x")), message="y")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected value here | - = note: eg `#[rustc_on_unimplemented = "foo"]` + = note: eg `#[rustc_on_unimplemented(message="foo")]` error: aborting due to 10 previous errors |
