Skip to content

Commit 662ca6d

Browse files
committed
fixes
1 parent 4e4a6c3 commit 662ca6d

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

crate_universe/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ rust_library(
7373
stamp = -1,
7474
version = VERSION,
7575
visibility = ["//visibility:public"],
76-
deps = all_crate_deps(normal = True, proc_macro = True),
76+
deps = all_crate_deps(
77+
normal = True,
78+
proc_macro = True,
79+
),
7780
)
7881

7982
rust_binary(

crate_universe/src/rendering.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,9 @@ impl Renderer {
590590
.unwrap_or_default(),
591591
),
592592
self.make_deps(
593-
attrs.map(|attrs| attrs.proc_macro_deps.clone()).unwrap_or_default(),
593+
attrs
594+
.map(|attrs| attrs.proc_macro_deps.clone())
595+
.unwrap_or_default(),
594596
attrs
595597
.map(|attrs| attrs.extra_proc_macro_deps.clone())
596598
.unwrap_or_default(),

crate_universe/tools/urls_generator/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ rust_binary(
1717
rustc_env = {
1818
"MODULE_ROOT_PATH": "$(rootpath //crate_universe/private:urls.bzl)",
1919
},
20-
deps = all_crate_deps(normal = True, proc_macro = True),
20+
deps = all_crate_deps(
21+
normal = True,
22+
proc_macro = True,
23+
),
2124
)

rust/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ load(
7979
def _rule_wrapper(rule):
8080
def _wrapped(name, deps = [], proc_macro_deps = [], **kwargs):
8181
if proc_macro_deps:
82-
print("proc_macros can now be passed directly to `deps`, no need to use `proc_macro_deps` in " + native.package_relative_label(name))
82+
print("proc_macros can now be passed directly to `deps`, no need to use `proc_macro_deps` in %s" % native.package_relative_label(name)) # buildifier: disable=print
8383

8484
rule(
8585
name = name,

rust/private/rust.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ load(
2222
"AllocatorLibrariesImplInfo",
2323
"AllocatorLibrariesInfo",
2424
"BuildInfo",
25-
"CrateInfo",
2625
"CrateGroupInfo",
26+
"CrateInfo",
2727
"DepInfo",
2828
"LintsInfo",
2929
)
@@ -1544,6 +1544,8 @@ def rust_test_suite(name, srcs, shared_srcs = [], deps = [], proc_macro_deps = [
15441544
name (str): The name of the `test_suite`.
15451545
srcs (list): All test sources, typically `glob(["tests/**/*.rs"])`.
15461546
shared_srcs (list): Optional argument for sources shared among tests, typically helper functions.
1547+
deps (list): Deps and proc_macro_deps for underlying test.
1548+
proc_macro_deps (list): Deprecated; do not use.
15471549
**kwargs (dict): Additional keyword arguments for the underlying [rust_test](#rust_test) targets. The
15481550
`tags` argument is also passed to the generated `test_suite` target.
15491551
"""

rust/private/utils.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ def is_exec_configuration(ctx):
498498
# TODO(djmarcin): Is there any better way to determine cfg=exec?
499499
return ctx.genfiles_dir.path.find("-exec") != -1
500500

501-
502501
def filter_deps(ctx):
503502
"""Filters the provided (combined) deps into normal deps and proc_macro deps.
504503

test/rust_analyzer/aspect_traversal_test/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ rust_test(
7070
crate = ":mylib",
7171
edition = "2018",
7272
deps = [
73+
":extra_proc_macro_dep",
7374
":extra_test_dep",
74-
":extra_proc_macro_dep"
7575
],
7676
)
7777

0 commit comments

Comments
 (0)