Skip to content

Commit

Permalink
Upgrade to rustc 1.40.0-nightly (ddf43867a 2019-09-26)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Sep 27, 2019
1 parent 5fd4467 commit d324a25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/script_plugins/unrooted_must_root.rs
Expand Up @@ -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;
Expand All @@ -62,7 +62,7 @@ fn is_unrooted_ty(
} else if match_def_path(cx, did.did, &[sym.alloc, sym.rc, sym.Rc]) {
// Rc<Promise> 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 {
Expand Down
2 changes: 1 addition & 1 deletion components/script_plugins/webidl_must_inherit.rs
Expand Up @@ -94,7 +94,7 @@ fn get_webidl_path(struct_name: &str) -> io::Result<path::PathBuf> {
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;
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
@@ -1 +1 @@
nightly-2019-09-24
nightly-2019-09-27

0 comments on commit d324a25

Please sign in to comment.