Skip to content

Commit

Permalink
Inline attrs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Aug 29, 2022
1 parent c768617 commit 78f83f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_ast/src/ast_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 78f83f0

Please sign in to comment.