Skip to content

Commit 929b899

Browse files
committed
Port #[link_ordinal] to the new attribute parsing infrastructure.
1 parent fd2a462 commit 929b899

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_parse/src/validate_attr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ pub fn check_builtin_meta_item(
266266
template: AttributeTemplate,
267267
deny_unsafety: bool,
268268
) {
269-
if !is_attr_template_compatible(&template, &meta.kind) {// attrs with new parsers are locally validated so excluded here
269+
if !is_attr_template_compatible(&template, &meta.kind) {
270+
// attrs with new parsers are locally validated so excluded here
270271
if matches!(
271272
name,
272273
sym::inline

0 commit comments

Comments
 (0)