-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustc: Forbid plugin_registrar in only rlib form #15565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -473,6 +473,13 @@ impl<'a> PluginMetadataReader<'a> { | |||
let registrar = decoder::get_plugin_registrar_fn(library.metadata.as_slice()).map(|id| { | |||
decoder::get_symbol(library.metadata.as_slice(), id) | |||
}); | |||
if library.dylib.is_none() && registrar.is_some() { | |||
let message = format!("crate `{}` found in rlib format but must \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"plugin crate ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Or maybe even "plugin crate
{} only found in ..."
.)
r=me with a tweaked error message. |
|
||
#![feature(phase)] | ||
#[phase(plugin)] extern crate rlib_crate_test; | ||
//~^ ERROR: crate `rlib_crate_test` found in rlib format but must be available in the dylib format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably needs adjusting for the new message...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm always sure to remind myself when I read comments about tweaking messages to go update the tests, and then I also always manage to forget by the time I git push
...
If a plugin registrar is available, the library must be found in dylib form, not just in rlib form. Closes rust-lang#15475
If a plugin registrar is available, the library must be found in dylib form, not just in rlib form. Closes #15475
Implement `write_via_move` intrinsic for mir-eval Required for getting `write!`ing to work again. we fail with an odd type mimsatch eval error after this change though
If a plugin registrar is available, the library must be found in dylib form, not
just in rlib form.
Closes #15475