Add ty_boxed to typeck.type_is_boxed.

This commit is contained in:
Graydon Hoare 2010-12-02 15:56:44 -08:00
parent cdcab742a7
commit a439f6ec68

View File

@ -577,6 +577,7 @@ fn type_is_boxed(@ty t) -> bool {
alt (t.struct) {
case (ty_str) { ret true; }
case (ty_vec(_)) { ret true; }
case (ty_box(_)) { ret true; }
case (_) { ret false; }
}
fail;