Skip to content
Permalink
Browse files

Whitelist rustc_layout_scalar_valid_range_{start,end} so incr comp do…

…es not flag them as unused.
  • Loading branch information...
pnkfelix committed Mar 29, 2019
1 parent 0b96697 commit 7642f108e246d955252bb8225bc1847c627f046d
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/libsyntax/feature_gate.rs
@@ -962,6 +962,20 @@ pub const BUILTIN_ATTRIBUTES: &[(&str, AttributeType, AttributeTemplate, Attribu
is just used for rustc unit tests \
and will never be stable",
cfg_fn!(rustc_attrs))),
("rustc_layout_scalar_valid_range_start", Whitelisted, template!(List: "value"),
Gated(Stability::Unstable,
"rustc_attrs",
"the `#[rustc_layout_scalar_valid_range_start]` attribute \
is just used to enable niche optimizations in libcore \
and will never be stable",
cfg_fn!(rustc_attrs))),
("rustc_layout_scalar_valid_range_end", Whitelisted, template!(List: "value"),
Gated(Stability::Unstable,
"rustc_attrs",
"the `#[rustc_layout_scalar_valid_range_end]` attribute \
is just used to enable niche optimizations in libcore \
and will never be stable",
cfg_fn!(rustc_attrs))),
("rustc_regions", Normal, template!(Word), Gated(Stability::Unstable,
"rustc_attrs",
"the `#[rustc_regions]` attribute \

0 comments on commit 7642f10

Please sign in to comment.
You can’t perform that action at this time.