Update to Rust 2016-03-18.

This commit is contained in:
Ms2ger 2016-03-14 18:03:32 +01:00 committed by Anthony Ramine
parent 090da52913
commit 6f679c124c
10 changed files with 212 additions and 190 deletions

View file

@ -66,6 +66,7 @@ fn is_unrooted_ty(cx: &LateContext, ty: &ty::TyS, in_new_function: bool) -> bool
ty::TyBox(..) if in_new_function => false, // box in new() is okay
ty::TyRef(..) => false, // don't recurse down &ptrs
ty::TyRawPtr(..) => false, // don't recurse down *ptrs
ty::TyFnDef(..) | ty::TyFnPtr(_) => false,
_ => true
}
});