Skip to content

Commit

Permalink
Recognize edition = "required" idiom
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Apr 26, 2022
1 parent 58627f5 commit 563839d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/private/rust.bzl
Expand Up @@ -119,7 +119,7 @@ def get_edition(attr, toolchain, label):
"""
if getattr(attr, "edition"):
return attr.edition
elif not toolchain.default_edition:
elif toolchain.default_edition == "required" or not toolchain.default_edition:
fail("Attribute `edition` is required for {}.".format(label))
else:
return toolchain.default_edition
Expand Down

0 comments on commit 563839d

Please sign in to comment.