You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #142986 - JonathanBrouwer:export_name_parser, r=jdonszelmann
Port `#[export_name]` to the new attribute parsing infrastructure
This PR contains two changes, in separate commits for reviewability:
- Ports `export_name` to the new attribute parsing infrastructure for #131229 (comment)
- Moves the check for mixing export_name/no_mangle to check_attr.rs and improve the error message, which previously had a mix of 2021/2024 edition syntax
r? ``@jdonszelmann``
Copy file name to clipboardExpand all lines: compiler/rustc_codegen_ssa/messages.ftl
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -205,11 +205,6 @@ codegen_ssa_missing_features = add the missing features in a `target_feature` at
205
205
codegen_ssa_missing_query_depgraph =
206
206
found CGU-reuse attribute but `-Zquery-dep-graph` was not specified
207
207
208
-
codegen_ssa_mixed_export_name_and_no_mangle = `{$no_mangle_attr}` attribute may not be used in combination with `#[export_name]`
209
-
.label = `{$no_mangle_attr}` is ignored
210
-
.note = `#[export_name]` takes precedence
211
-
.suggestion = remove the `{$no_mangle_attr}` attribute
212
-
213
208
codegen_ssa_msvc_missing_linker = the msvc targets depend on the msvc linker but `link.exe` was not found
214
209
215
210
codegen_ssa_multiple_external_func_decl = multiple declarations of external function `{$function}` from library `{$library_name}` have different calling conventions
0 commit comments