diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-03-15 16:22:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-15 16:22:51 +0100 |
| commit | b8622f2b3bad72a3f4fd5fb6de88b55e04017c55 (patch) | |
| tree | 3bfab8a217e34363add6ca7ed2b6b86d4f0e2f68 /compiler/rustc_ast/src | |
| parent | 4eca4929ec77b34a274a3090310247a1ec485953 (diff) | |
| parent | 49431909a6a8ccb915302d57c869e86d2a576af6 (diff) | |
| download | rust-b8622f2b3bad72a3f4fd5fb6de88b55e04017c55.tar.gz rust-b8622f2b3bad72a3f4fd5fb6de88b55e04017c55.zip | |
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.
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/attr/mod.rs | 1 |
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, |
