@@ -195,3 +195,55 @@ attr_parsing_invalid_meta_item = expected a literal (`1u8`, `1.0f32`, `"string"`
195195
196196attr_parsing_suffixed_literal_in_attribute = suffixed literals are not allowed in attributes
197197 .help = instead of using a suffixed literal (`1u8`, `1.0f32`, etc.), use an unsuffixed version (`1`, `1.0`, etc.)
198+
199+ attr_parsing_as_needed_compatibility =
200+ linking modifier `as-needed` is only compatible with `dylib` and `framework` linking kinds
201+
202+ attr_parsing_bundle_needs_static =
203+ linking modifier `bundle` is only compatible with `static` linking kind
204+
205+ attr_parsing_empty_link_name =
206+ link name must not be empty
207+ .label = empty link name
208+
209+ attr_parsing_import_name_type_raw =
210+ import name type can only be used with link kind `raw-dylib`
211+
212+ attr_parsing_import_name_type_x86 =
213+ import name type is only supported on x86
214+
215+ attr_parsing_incompatible_wasm_link =
216+ `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
217+
218+ attr_parsing_invalid_link_modifier =
219+ invalid linking modifier syntax, expected '+' or '-' prefix before one of: bundle, verbatim, whole-archive, as-needed
220+
221+ attr_parsing_link_arg_unstable =
222+ link kind `link-arg` is unstable
223+
224+ attr_parsing_link_cfg_unstable =
225+ link cfg is unstable
226+
227+ attr_parsing_link_framework_apple =
228+ link kind `framework` is only supported on Apple targets
229+
230+ attr_parsing_link_requires_name =
231+ `#[link]` attribute requires a `name = "string"` argument
232+ .label = missing `name` argument
233+
234+ attr_parsing_multiple_modifiers =
235+ multiple `{ $modifier } ` modifiers in a single `modifiers` argument
236+
237+ attr_parsing_multiple_renamings =
238+ multiple renamings were specified for library `{ $lib_name } `
239+ attr_parsing_raw_dylib_no_nul =
240+ link name must not contain NUL characters if link kind is `raw-dylib`
241+
242+ attr_parsing_raw_dylib_elf_unstable =
243+ link kind `raw-dylib` is unstable on ELF platforms
244+
245+ attr_parsing_raw_dylib_only_windows =
246+ link kind `raw-dylib` is only supported on Windows targets
247+
248+ attr_parsing_whole_archive_needs_static =
249+ linking modifier `whole-archive` is only compatible with `static` linking kind
0 commit comments