• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 813723ed69cf0689a552c7c83936ebcbd500fb62 Mon Sep 17 00:00:00 2001
2From: Erik Gilling <konkers@google.com>
3Date: Tue, 2 May 2023 21:54:55 +0000
4Subject: [PATCH 1/2] rustdoc_test: Apply prefix stripping to proc_macro
5 dependencies.
6
7Without stripping the prefix, rustdoc can not find the proc macro
8shared library.
9---
10 rust/private/rustdoc_test.bzl | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/rust/private/rustdoc_test.bzl b/rust/private/rustdoc_test.bzl
14index 1ff886f0..da40d42b 100644
15--- a/rust/private/rustdoc_test.bzl
16+++ b/rust/private/rustdoc_test.bzl
17@@ -67,7 +67,7 @@ def _construct_writer_arguments(ctx, test_runner, opt_test_params, action, crate
18     root = crate_info.output.root.path
19     if not root in roots:
20         roots.append(root)
21-    for dep in crate_info.deps.to_list():
22+    for dep in crate_info.deps.to_list() + crate_info.proc_macro_deps.to_list():
23         dep_crate_info = getattr(dep, "crate_info", None)
24         dep_dep_info = getattr(dep, "dep_info", None)
25         if dep_crate_info:
26--
272.45.1.288.g0e0cd299f1-goog
28
29