Skip to content

Commit 563839d

Browse files
committed
Recognize edition = "required" idiom
1 parent 58627f5 commit 563839d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/private/rust.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def get_edition(attr, toolchain, label):
119119
"""
120120
if getattr(attr, "edition"):
121121
return attr.edition
122-
elif not toolchain.default_edition:
122+
elif toolchain.default_edition == "required" or not toolchain.default_edition:
123123
fail("Attribute `edition` is required for {}.".format(label))
124124
else:
125125
return toolchain.default_edition

0 commit comments

Comments
 (0)