summaryrefslogtreecommitdiffstats
path: root/src/test/run-make-fulldeps/issue-38237
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-make-fulldeps/issue-38237')
-rw-r--r--src/test/run-make-fulldeps/issue-38237/Makefile5
-rw-r--r--src/test/run-make-fulldeps/issue-38237/bar.rs4
-rw-r--r--src/test/run-make-fulldeps/issue-38237/baz.rs8
-rw-r--r--src/test/run-make-fulldeps/issue-38237/foo.rs9
4 files changed, 26 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/issue-38237/Makefile b/src/test/run-make-fulldeps/issue-38237/Makefile
new file mode 100644
index 000000000..0a681401b
--- /dev/null
+++ b/src/test/run-make-fulldeps/issue-38237/Makefile
@@ -0,0 +1,5 @@
+-include ../tools.mk
+
+all:
+ $(RUSTC) foo.rs; $(RUSTC) bar.rs
+ $(RUSTDOC) baz.rs -L $(TMPDIR) -o $(TMPDIR)
diff --git a/src/test/run-make-fulldeps/issue-38237/bar.rs b/src/test/run-make-fulldeps/issue-38237/bar.rs
new file mode 100644
index 000000000..2b839f3a3
--- /dev/null
+++ b/src/test/run-make-fulldeps/issue-38237/bar.rs
@@ -0,0 +1,4 @@
+#![crate_type = "lib"]
+
+#[derive(Debug)]
+pub struct S;
diff --git a/src/test/run-make-fulldeps/issue-38237/baz.rs b/src/test/run-make-fulldeps/issue-38237/baz.rs
new file mode 100644
index 000000000..cd2425f9b
--- /dev/null
+++ b/src/test/run-make-fulldeps/issue-38237/baz.rs
@@ -0,0 +1,8 @@
+extern crate foo;
+extern crate bar;
+
+pub struct Bar;
+impl ::std::ops::Deref for Bar {
+ type Target = bar::S;
+ fn deref(&self) -> &Self::Target { unimplemented!() }
+}
diff --git a/src/test/run-make-fulldeps/issue-38237/foo.rs b/src/test/run-make-fulldeps/issue-38237/foo.rs
new file mode 100644
index 000000000..a106e4fde
--- /dev/null
+++ b/src/test/run-make-fulldeps/issue-38237/foo.rs
@@ -0,0 +1,9 @@
+#![crate_type = "proc-macro"]
+
+extern crate proc_macro;
+
+#[proc_macro_derive(A)]
+pub fn derive(ts: proc_macro::TokenStream) -> proc_macro::TokenStream { ts }
+
+#[derive(Debug)]
+struct S;