Skip to content

Commit 09a9b6c

Browse files
authored
Fix rust_stdlib_filegroup error message (#822)
1 parent e054e33 commit 09a9b6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rust/toolchain.bzl

+2-3
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,10 @@ def _make_libstd_and_allocator_ccinfo(ctx, rust_lib, allocator_library):
109109
if not rust_common.stdlib_info in ctx.attr.rust_lib:
110110
fail(dedent("""\
111111
{} --
112-
The `rust_lib` must be a target providing `rust_common.stdlib_info`
112+
The `rust_lib` ({}) must be a target providing `rust_common.stdlib_info`
113113
(typically `rust_stdlib_filegroup` rule from @rules_rust//rust:defs.bzl).
114114
See https://github.com/bazelbuild/rules_rust/pull/802 for more information.
115-
116-
""").format(ctx.label))
115+
""").format(ctx.label, ctx.attr.rust_lib))
117116
rust_stdlib_info = ctx.attr.rust_lib[rust_common.stdlib_info]
118117

119118
if rust_stdlib_info.std_rlibs:

0 commit comments

Comments
 (0)