diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index 128bec6b6c7..0edab34dc84 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -9,7 +9,6 @@ #![deny(unsafe_code)] #![feature(plugin)] -#![feature(plugin_registrar)] #![feature(rustc_private)] #![cfg(feature = "unrooted_must_root_lint")] @@ -34,9 +33,9 @@ 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) { +#[allow(unsafe_code)] // #[no_mangle] is unsafe +#[no_mangle] +fn __rustc_plugin_registrar(reg: &mut Registry) { registrar(reg) } diff --git a/rust-toolchain b/rust-toolchain index 659c2bb8306..4b91e309322 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2021-07-17 +nightly-2021-08-13