aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-09-15 17:00:56 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-09-15 17:00:56 +0200
commitec12355cb32efe751f3a3354d5a0d62884955acd (patch)
tree7678d7945b79ace35f41eaba413788603017e68e /components/plugins
parentb3db4b4c0dfc41ffbf566da15bd85ebdb7b1ea1f (diff)
downloadservo-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.rs3
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