about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-03-11 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-03-11 16:04:14 +0100
commit1ba71abddd744ff8bfbbb100c64ec8cbc52df62e (patch)
tree1a55b7916371cf6a1a2e2d98e301f9309a48a2d6 /compiler
parent5c6d3bf3896b465e15550f49c2861e3d18102270 (diff)
downloadrust-1ba71abddd744ff8bfbbb100c64ec8cbc52df62e.tar.gz
rust-1ba71abddd744ff8bfbbb100c64ec8cbc52df62e.zip
Inline Attribute::has_name
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_ast/src/attr/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/attr/mod.rs b/compiler/rustc_ast/src/attr/mod.rs
index 1e224dbf833..40b0cefd83a 100644
--- a/compiler/rustc_ast/src/attr/mod.rs
+++ b/compiler/rustc_ast/src/attr/mod.rs
@@ -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,