From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/run-make-fulldeps/pretty-expanded/Makefile | 4 ++++ tests/run-make-fulldeps/pretty-expanded/input.rs | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/run-make-fulldeps/pretty-expanded/Makefile create mode 100644 tests/run-make-fulldeps/pretty-expanded/input.rs (limited to 'tests/run-make-fulldeps/pretty-expanded') diff --git a/tests/run-make-fulldeps/pretty-expanded/Makefile b/tests/run-make-fulldeps/pretty-expanded/Makefile new file mode 100644 index 000000000..5a0097a83 --- /dev/null +++ b/tests/run-make-fulldeps/pretty-expanded/Makefile @@ -0,0 +1,4 @@ +include ../tools.mk + +all: + $(RUSTC) -o $(TMPDIR)/input.expanded.rs -Zunpretty=expanded input.rs diff --git a/tests/run-make-fulldeps/pretty-expanded/input.rs b/tests/run-make-fulldeps/pretty-expanded/input.rs new file mode 100644 index 000000000..af3d75b3b --- /dev/null +++ b/tests/run-make-fulldeps/pretty-expanded/input.rs @@ -0,0 +1,12 @@ +#[crate_type="lib"] + +// #13544 + +extern crate rustc_serialize; + +#[derive(RustcEncodable)] pub struct A; +#[derive(RustcEncodable)] pub struct B(isize); +#[derive(RustcEncodable)] pub struct C { x: isize } +#[derive(RustcEncodable)] pub enum D {} +#[derive(RustcEncodable)] pub enum E { y } +#[derive(RustcEncodable)] pub enum F { z(isize) } -- cgit v1.2.3