diff options
| author | Graydon Hoare <[email protected]> | 2010-12-02 15:56:44 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-12-02 15:56:44 -0800 |
| commit | a439f6ec682edffcfdb269a1cc3ba950f3c0fb25 (patch) | |
| tree | 6f2188e70f7323b2ee5ea2f477af1adea9e5ff61 /src | |
| parent | Fix fold bug on expr_unary. (diff) | |
| download | rust-a439f6ec682edffcfdb269a1cc3ba950f3c0fb25.tar.xz rust-a439f6ec682edffcfdb269a1cc3ba950f3c0fb25.zip | |
Add ty_boxed to typeck.type_is_boxed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/typeck.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/middle/typeck.rs b/src/comp/middle/typeck.rs index d7df7616..5bf9dd31 100644 --- a/src/comp/middle/typeck.rs +++ b/src/comp/middle/typeck.rs @@ -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; |