Replace #[plugin_registrar] with exporting __rustc_plugin_registrar
This commit is contained in:
parent
2d10c2a330
commit
a501308ec1
35 changed files with 287 additions and 556 deletions
|
@ -792,12 +792,6 @@ impl Session {
|
|||
)
|
||||
}
|
||||
|
||||
/// Returns the symbol name for the registrar function,
|
||||
/// given the crate `Svh` and the function `DefIndex`.
|
||||
pub fn generate_plugin_registrar_symbol(&self, stable_crate_id: StableCrateId) -> String {
|
||||
format!("__rustc_plugin_registrar_{:08x}__", stable_crate_id.to_u64())
|
||||
}
|
||||
|
||||
pub fn generate_proc_macro_decls_symbol(&self, stable_crate_id: StableCrateId) -> String {
|
||||
format!("__rustc_proc_macro_decls_{:08x}__", stable_crate_id.to_u64())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue