diff options
| author | bors <bors@rust-lang.org> | 2021-08-12 04:30:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-12 04:30:41 +0000 |
| commit | eb2226b1f174f3cc644275ef8663be6295a7f704 (patch) | |
| tree | a4c1e2eca23c77daca0f86813dfa158eed80e1ac /compiler/rustc_session/src | |
| parent | 25d3e14da77f755ef858b976a25c7e856b62b42a (diff) | |
| parent | a501308ec1601c2b1d50230a061fb2700940727d (diff) | |
Auto merge of #85296 - bjorn3:plugin_cleanup, r=petrochenkov
Plugin interface cleanup The first commit performs two uncontroversial cleanups. The second commit removes `#[plugin_registrar]` and instead requires you to export a `__rustc_plugin_registrar` function, this will require a change to servo's script_plugins (cc `@jdm)`
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index d5c759623e3..0b1a99922d6 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -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()) } |
