Rollup merge of #83054 - tmiasko:rustc_layout_scalar_valid_range, r=davidtwco
Validate rustc_layout_scalar_valid_range_{start,end} attributes Fixes #82251, fixes #82981.
This commit is contained in:
commit
b8622f2b3b
4 changed files with 91 additions and 1 deletions
|
@ -120,6 +120,7 @@ impl NestedMetaItem {
|
|||
}
|
||||
|
||||
impl Attribute {
|
||||
#[inline]
|
||||
pub fn has_name(&self, name: Symbol) -> bool {
|
||||
match self.kind {
|
||||
AttrKind::Normal(ref item, _) => item.path == name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue