Add ty_boxed to typeck.type_is_boxed.
This commit is contained in:
parent
cdcab742a7
commit
a439f6ec68
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue