aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/lib.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-08-09 12:01:42 +0200
committerGitHub <noreply@github.com>2021-08-09 12:01:42 +0200
commit92a23f758321fdfbc7075f00770972253e03f0df (patch)
tree43ab6f90d6ea307254a8f4320d7725e477ff1f92 /components/script_plugins/lib.rs
parentcc1f89863ce0e93ff7ce4f4855bd888df67a51fb (diff)
downloadservo-92a23f758321fdfbc7075f00770972253e03f0df.tar.gz
servo-92a23f758321fdfbc7075f00770972253e03f0df.zip
Update script_plugin for rust-lang/rust#85296
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r--components/script_plugins/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs
index 128bec6b6c7..0b8b805a579 100644
--- a/components/script_plugins/lib.rs
+++ b/components/script_plugins/lib.rs
@@ -34,9 +34,8 @@ use rustc_span::source_map::{ExpnKind, MacroKind, Span};
use rustc_span::symbol::sym;
use rustc_span::symbol::Symbol;
-#[allow(deprecated)]
-#[plugin_registrar]
-pub fn plugin_registrar(reg: &mut Registry) {
+#[no_mangle]
+fn __rustc_plugin_registrar(reg: &mut Registry) {
registrar(reg)
}