Skip to content

Commit

Permalink
rustdoc_test: Apply prefix stripping to proc_macro dependencies.
Browse files Browse the repository at this point in the history
Without stripping the prefix, rustdoc can not find the proc macro
shared library.
  • Loading branch information
konkers committed May 2, 2023
1 parent 99aaf08 commit a6e4387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/private/rustdoc_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _construct_writer_arguments(ctx, test_runner, opt_test_params, action, crate
root = crate_info.output.root.path
if not root in roots:
roots.append(root)
for dep in crate_info.deps.to_list():
for dep in crate_info.deps.to_list() + crate_info.proc_macro_deps.to_list():
dep_crate_info = getattr(dep, "crate_info", None)
dep_dep_info = getattr(dep, "dep_info", None)
if dep_crate_info:
Expand Down

0 comments on commit a6e4387

Please sign in to comment.