diff options
-rw-r--r-- | components/script/lib.rs | 2 | ||||
-rw-r--r-- | components/script_plugins/lib.rs | 6 | ||||
-rw-r--r-- | rust-toolchain | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs index 86935833157..8c8c4376726 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -3,8 +3,8 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #![feature(assoc_char_funcs)] -#![feature(const_fn)] #![feature(const_fn_fn_ptr_basics)] +#![feature(const_fn_trait_bound)] #![feature(core_intrinsics)] #![feature(drain_filter)] #![feature(plugin)] diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index 0a4f70c5c58..a42eb96bf23 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -405,7 +405,11 @@ fn match_def_path(cx: &LateContext, def_id: DefId, path: &[Symbol]) -> bool { fn in_derive_expn(span: Span) -> bool { matches!( span.ctxt().outer_expn_data().kind, - ExpnKind::Macro(MacroKind::Derive, _) + ExpnKind::Macro { + kind: MacroKind::Derive, + name: _, + proc_macro: _, + } ) } diff --git a/rust-toolchain b/rust-toolchain index 02c828fea2f..b2eff28fe03 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2021-03-12 +nightly-2021-05-18 |