Skip to content

Commit

Permalink
Fix rust_stdlib_filegroup error message (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlopko committed Jul 5, 2021
1 parent e054e33 commit 09a9b6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rust/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,10 @@ def _make_libstd_and_allocator_ccinfo(ctx, rust_lib, allocator_library):
if not rust_common.stdlib_info in ctx.attr.rust_lib:
fail(dedent("""\
{} --
The `rust_lib` must be a target providing `rust_common.stdlib_info`
The `rust_lib` ({}) must be a target providing `rust_common.stdlib_info`
(typically `rust_stdlib_filegroup` rule from @rules_rust//rust:defs.bzl).
See https://github.com/bazelbuild/rules_rust/pull/802 for more information.
""").format(ctx.label))
""").format(ctx.label, ctx.attr.rust_lib))
rust_stdlib_info = ctx.attr.rust_lib[rust_common.stdlib_info]

if rust_stdlib_info.std_rlibs:
Expand Down

0 comments on commit 09a9b6c

Please sign in to comment.