Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14)

This commit is contained in:
Anthony Ramine 2016-09-15 17:00:56 +02:00
parent b3db4b4c0d
commit ec12355cb3
4 changed files with 5 additions and 6 deletions

View file

@ -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