]> git.lizzy.rs Git - rust.git/commitdiff
Added expected (compile-time) outputs.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Mon, 17 Sep 2018 09:54:33 +0000 (11:54 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Fri, 21 Sep 2018 14:21:40 +0000 (16:21 +0200)
* In the case of `derive-same-struct`, it seemed cleaner to add the
  output than to try to modify the macro itself (which is where the
  output is coming from).

* In the case of `custom-derive-partial-eq`, it was just easier to add
  the output than to attempt to port the test to use a procedural
  macro.

src/test/run-pass-fulldeps/custom-derive-partial-eq.stderr [new file with mode: 0644]
src/test/run-pass-fulldeps/proc-macro/derive-same-struct.stdout [new file with mode: 0644]

diff --git a/src/test/run-pass-fulldeps/custom-derive-partial-eq.stderr b/src/test/run-pass-fulldeps/custom-derive-partial-eq.stderr
new file mode 100644 (file)
index 0000000..ba956e4
--- /dev/null
@@ -0,0 +1,6 @@
+warning: `#[derive]` for custom traits is deprecated and will be removed in the future. Prefer using procedural macro custom derive.
+  --> $DIR/custom-derive-partial-eq.rs:17:10
+   |
+LL | #[derive(CustomPartialEq)] // Check that this is not a stability error.
+   |          ^^^^^^^^^^^^^^^
+
diff --git a/src/test/run-pass-fulldeps/proc-macro/derive-same-struct.stdout b/src/test/run-pass-fulldeps/proc-macro/derive-same-struct.stdout
new file mode 100644 (file)
index 0000000..77605de
--- /dev/null
@@ -0,0 +1 @@
+input1: "struct A;"