diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-29 20:25:48 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-08-29 20:25:48 +1000 |
| commit | 78f83f0b460eb9c79369c5e5d6616ed6918a8024 (patch) | |
| tree | 6cf56dda84c7f1f8ae3d063fd6e15980593cf236 /compiler | |
| parent | c768617f6fae82388df9ac1a5907c30fcba3ef44 (diff) | |
| download | rust-78f83f0b460eb9c79369c5e5d6616ed6918a8024.tar.gz rust-78f83f0b460eb9c79369c5e5d6616ed6918a8024.zip | |
Inline `attrs`.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_ast/src/ast_traits.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/ast_traits.rs b/compiler/rustc_ast/src/ast_traits.rs index 0947a71b824..79f5820230e 100644 --- a/compiler/rustc_ast/src/ast_traits.rs +++ b/compiler/rustc_ast/src/ast_traits.rs @@ -279,6 +279,7 @@ macro_rules! impl_has_attrs { impl HasAttrs for $T { const SUPPORTS_CUSTOM_INNER_ATTRS: bool = $inner; + #[inline] fn attrs(&self) -> &[Attribute] { &self.attrs } |
