From 9e33d575177dd77adce3642dbf8501dac21d8e93 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 17 Sep 2018 11:54:33 +0200 Subject: [PATCH] Added expected (compile-time) outputs. * 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 | 6 ++++++ .../run-pass-fulldeps/proc-macro/derive-same-struct.stdout | 1 + 2 files changed, 7 insertions(+) create mode 100644 src/test/run-pass-fulldeps/custom-derive-partial-eq.stderr create mode 100644 src/test/run-pass-fulldeps/proc-macro/derive-same-struct.stdout 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 index 00000000000..ba956e4c132 --- /dev/null +++ b/src/test/run-pass-fulldeps/custom-derive-partial-eq.stderr @@ -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 index 00000000000..77605de5e33 --- /dev/null +++ b/src/test/run-pass-fulldeps/proc-macro/derive-same-struct.stdout @@ -0,0 +1 @@ +input1: "struct A;" -- 2.44.0