Skip to content

Commit 7642f10

Browse files
committed
Whitelist rustc_layout_scalar_valid_range_{start,end} so incr comp does not flag them as unused.
1 parent 0b96697 commit 7642f10

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/libsyntax/feature_gate.rs

+14
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,20 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
962962
is just used for rustc unit tests \
963963
and will never be stable",
964964
cfg_fn!(rustc_attrs))),
965+
("rustc_layout_scalar_valid_range_start", Whitelisted, template!(List: "value"),
966+
Gated(Stability::Unstable,
967+
"rustc_attrs",
968+
"the `#[rustc_layout_scalar_valid_range_start]` attribute \
969+
is just used to enable niche optimizations in libcore \
970+
and will never be stable",
971+
cfg_fn!(rustc_attrs))),
972+
("rustc_layout_scalar_valid_range_end", Whitelisted, template!(List: "value"),
973+
Gated(Stability::Unstable,
974+
"rustc_attrs",
975+
"the `#[rustc_layout_scalar_valid_range_end]` attribute \
976+
is just used to enable niche optimizations in libcore \
977+
and will never be stable",
978+
cfg_fn!(rustc_attrs))),
965979
("rustc_regions", Normal, template!(Word), Gated(Stability::Unstable,
966980
"rustc_attrs",
967981
"the `#[rustc_regions]` attribute \

0 commit comments

Comments
 (0)