diff --git a/components/script_plugins/unrooted_must_root.rs b/components/script_plugins/unrooted_must_root.rs index bc99aa36d70..cfd8169934e 100644 --- a/components/script_plugins/unrooted_must_root.rs +++ b/components/script_plugins/unrooted_must_root.rs @@ -52,7 +52,7 @@ fn is_unrooted_ty( ) -> bool { let mut ret = false; ty.maybe_walk(|t| { - match t.sty { + match t.kind { ty::Adt(did, substs) => { if cx.tcx.has_attr(did.did, sym.must_root) { ret = true; @@ -62,7 +62,7 @@ fn is_unrooted_ty( } else if match_def_path(cx, did.did, &[sym.alloc, sym.rc, sym.Rc]) { // Rc is okay let inner = substs.type_at(0); - if let ty::Adt(did, _) = inner.sty { + if let ty::Adt(did, _) = inner.kind { if cx.tcx.has_attr(did.did, sym.allow_unrooted_in_rc) { false } else { diff --git a/components/script_plugins/webidl_must_inherit.rs b/components/script_plugins/webidl_must_inherit.rs index 83f00197c3e..063d99db2af 100644 --- a/components/script_plugins/webidl_must_inherit.rs +++ b/components/script_plugins/webidl_must_inherit.rs @@ -94,7 +94,7 @@ fn get_webidl_path(struct_name: &str) -> io::Result { fn is_webidl_ty(symbols: &crate::Symbols, cx: &LateContext, ty: &ty::TyS) -> bool { let mut ret = false; ty.maybe_walk(|t| { - match t.sty { + match t.kind { ty::Adt(did, _substs) => { if cx.tcx.has_attr(did.did, symbols.webidl) { ret = true; diff --git a/rust-toolchain b/rust-toolchain index 756a627ce32..40b671b8aca 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2019-09-24 +nightly-2019-09-27