mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add ty_boxed to typeck.type_is_boxed.
This commit is contained in:
parent
cdcab742a7
commit
a439f6ec68
@ -577,6 +577,7 @@ fn type_is_boxed(@ty t) -> bool {
|
|||||||
alt (t.struct) {
|
alt (t.struct) {
|
||||||
case (ty_str) { ret true; }
|
case (ty_str) { ret true; }
|
||||||
case (ty_vec(_)) { ret true; }
|
case (ty_vec(_)) { ret true; }
|
||||||
|
case (ty_box(_)) { ret true; }
|
||||||
case (_) { ret false; }
|
case (_) { ret false; }
|
||||||
}
|
}
|
||||||
fail;
|
fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user