mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
Update Rust to 1.13.0-nightly (6ffdda1ba 2016-09-14)
This commit is contained in:
parent
b3db4b4c0d
commit
ec12355cb3
4 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue