Skip to content

Commit

Permalink
Remove _rustc_env_attr in rust_binary and rust_library
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinh Tran committed Oct 9, 2023
1 parent 0e899d7 commit d08c40d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rust/private/rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _rust_library_common(ctx, crate_type):
compile_data = depset(ctx.files.compile_data),
compile_data_targets = depset(ctx.attr.compile_data),
owner = ctx.label,
_rustc_env_attr = ctx.attr.rustc_env,
# _rustc_env_attr = ctx.attr.rustc_env,
),
)

Expand Down Expand Up @@ -241,7 +241,7 @@ def _rust_binary_impl(ctx):
aliases = ctx.attr.aliases,
output = output,
edition = get_edition(ctx.attr, toolchain, ctx.label),
_rustc_env_attr = ctx.attr.rustc_env,
# _rustc_env_attr = ctx.attr.rustc_env,
rustc_env = ctx.attr.rustc_env,
rustc_env_files = ctx.files.rustc_env_files,
is_test = False,
Expand Down
2 changes: 1 addition & 1 deletion rust/private/rustc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def construct_arguments(
else:
env.update(expand_dict_value_locations(
ctx,
crate_info._rustc_env_attr,
crate_info.rustc_env,
data_paths,
))

Expand Down

0 comments on commit d08c40d

Please sign in to comment.