mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #28564 - bjorn3:patch-1, r=jdm
Update script_plugin for rust-lang/rust#85296 This will update the script_plugin for the plugin interface changes in rust-lang/rust#85296. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because it is a fix for rustc changes.
This commit is contained in:
commit
3a56027cf1
2 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
nightly-2021-07-17
|
||||
nightly-2021-08-13
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue