aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_plugins/lib.rs
diff options
context:
space:
mode:
authorDominic Cooney <dominic.cooney@gmail.com>2021-05-22 17:53:48 +0900
committerDominic Cooney <dominic.cooney@gmail.com>2021-05-22 19:47:31 +0900
commit7d997748da14e1b5b64ea92b8fbeab123a1268c9 (patch)
tree4821a7ef1643a4667365e0330d9aad512c66931a /components/script_plugins/lib.rs
parenta6ab7c77e51cb059fbe38a53d863546d8fdb9c61 (diff)
downloadservo-7d997748da14e1b5b64ea92b8fbeab123a1268c9.tar.gz
servo-7d997748da14e1b5b64ea92b8fbeab123a1268c9.zip
Update toolchain to nightly-2021-05-18
The nightly-2021-03-12 toolchain doesn't have RLS on Windows. This breaks code completion in Visual Studio Code because the rust plugin picks up the project toolchain. RLS is available in all tier one platforms in nightly-2021-05-18 per: https://rust-lang.github.io/rustup-components-history/ Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
Diffstat (limited to 'components/script_plugins/lib.rs')
-rw-r--r--components/script_plugins/lib.rs6
1 files changed, 5 insertions, 1 deletions
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: _,
+ }
)
}