mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01:00
Update to Rust 2016-03-18.
This commit is contained in:
parent
090da52913
commit
6f679c124c
10 changed files with 212 additions and 190 deletions
|
@ -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
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue