diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-09-15 17:00:56 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-09-15 17:00:56 +0200 |
commit | ec12355cb32efe751f3a3354d5a0d62884955acd (patch) | |
tree | 7678d7945b79ace35f41eaba413788603017e68e /components/plugins | |
parent | b3db4b4c0dfc41ffbf566da15bd85ebdb7b1ea1f (diff) | |
download | servo-ec12355cb32efe751f3a3354d5a0d62884955acd.tar.gz servo-ec12355cb32efe751f3a3354d5a0d62884955acd.zip |
Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14)
Diffstat (limited to 'components/plugins')
-rw-r--r-- | components/plugins/lints/unrooted_must_root.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/plugins/lints/unrooted_must_root.rs b/components/plugins/lints/unrooted_must_root.rs index f08d5b7572f..5dc94df69f7 100644 --- a/components/plugins/lints/unrooted_must_root.rs +++ b/components/plugins/lints/unrooted_must_root.rs @@ -43,8 +43,7 @@ fn is_unrooted_ty(cx: &LateContext, ty: &ty::TyS, in_new_function: bool) -> bool let mut ret = false; ty.maybe_walk(|t| { match t.sty { - ty::TyStruct(did, _) | - ty::TyEnum(did, _) => { + ty::TyAdt(did, _) => { if cx.tcx.has_attr(did.did, "must_root") { ret = true; false |