Skip to content

Commit 1ba71ab

Browse files
committed
Inline Attribute::has_name
1 parent 5c6d3bf commit 1ba71ab

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_ast/src/attr

1 file changed

+1
-0
lines changed

compiler/rustc_ast/src/attr/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ impl NestedMetaItem {
120120
}
121121

122122
impl Attribute {
123+
#[inline]
123124
pub fn has_name(&self, name: Symbol) -> bool {
124125
match self.kind {
125126
AttrKind::Normal(ref item, _) => item.path == name,

0 commit comments

Comments
 (0)