Fix duplicate errors for link_section, rustc_layout_scalar_valid_range_start and rustc_layout_scalar_valid_range_end

This commit is contained in:
Jonathan Brouwer
2025-07-01 16:12:17 +02:00
parent d22ce4c5eb
commit 57a5e3b6d2
3 changed files with 39 additions and 20 deletions

View File

@@ -305,6 +305,9 @@ fn emit_malformed_attribute(
| sym::link_name
| sym::export_name
| sym::rustc_macro_transparency
| sym::link_section
| sym::rustc_layout_scalar_valid_range_start
| sym::rustc_layout_scalar_valid_range_end
) {
return;
}