Constant rustc_metadata::DIAGNOSTICS
[−]
[src]
pub const DIAGNOSTICS: [(&'static str, &'static str); 5]=
[("E0454", "\nA link name was given with an empty name. Erroneous code example:\n\n```compile_fail,E0454\n#[link(name = \"\")] extern {} // error: #[link(name = \"\")] given with empty name\n```\n\nThe rust compiler cannot link to an external library if you don\'t give it its\nname. Example:\n\n```ignore\n#[link(name = \"some_lib\")] extern {} // ok!\n```\n"), ("E0455", "\nLinking with `kind=framework` is only supported when targeting OS X,\nas frameworks are specific to that operating system.\n\nErroneous code example:\n\n```ignore\n#[link(name = \"FooCoreServices\", kind = \"framework\")] extern {}\n// OS used to compile is Linux for example\n```\n\nTo solve this error you can use conditional compilation:\n\n```\n#[cfg_attr(target=\"macos\", link(name = \"FooCoreServices\", kind = \"framework\"))]\nextern {}\n```\n\nSee more: https://doc.rust-lang.org/book/conditional-compilation.html\n"), ("E0458", "\nAn unknown \"kind\" was specified for a link attribute. Erroneous code example:\n\n```compile_fail,E0458\n#[link(kind = \"wonderful_unicorn\")] extern {}\n// error: unknown kind: `wonderful_unicorn`\n```\n\nPlease specify a valid \"kind\" value, from one of the following:\n\n* static\n* dylib\n* framework\n\n"), ("E0459", "\nA link was used without a name parameter. Erroneous code example:\n\n```compile_fail,E0459\n#[link(kind = \"dylib\")] extern {}\n// error: #[link(...)] specified without `name = \"foo\"`\n```\n\nPlease add the name parameter to allow the rust compiler to find the library\nyou want. Example:\n\n```ignore\n#[link(kind = \"dylib\", name = \"some_lib\")] extern {} // ok!\n```\n"), ("E0463", "\nA plugin/crate was declared but cannot be found. Erroneous code example:\n\n```compile_fail,E0463\n#![feature(plugin)]\n#![plugin(cookie_monster)] // error: can\'t find crate for `cookie_monster`\nextern crate cake_is_a_lie; // error: can\'t find crate for `cake_is_a_lie`\n```\n\nYou need to link your code to the relevant crate in order to be able to use it\n(through Cargo or the `-L` option of rustc example). Plugins are crates as\nwell, and you link to them the same way.\n")]
🔬 This is a nightly-only experimental API. (
rustc_private
)