Skip to content

Commit 0cbda35

Browse files
committed
---
yaml --- r: 2476 b: refs/heads/master c: df914e8 h: refs/heads/master v: v3
1 parent b06b264 commit 0cbda35

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 26ab36afb1e3bdce8c6cd995aa964d2730aec268
2+
refs/heads/master: df914e89041bd6a133c6fb642144668bafae5a80

trunk/src/comp/middle/ty.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,6 @@ fn mk_ty_full(&sty st, &Option.t[str] cname) -> t {
362362
fn gen_ty_full(&ctxt cx, &sty st, &Option.t[str] cname) -> t {
363363
auto new_type = mk_ty_full(st, cname);
364364

365-
// Do not intern anything with locals or vars; it'll be nearly
366-
// single-use anyways, easier to regenerate than fill up the table.
367-
if (new_type.has_locals || new_type.has_vars) {
368-
ret new_type;
369-
}
370-
371365
// Is it interned?
372366
alt (cx.ts.others.find(new_type)) {
373367
case (some[t](?typ)) {
@@ -1542,17 +1536,7 @@ fn eq_ty_full(&t a, &t b) -> bool {
15421536

15431537
// This is the equality function the public should use. It works as long as
15441538
// the types are interned.
1545-
fn eq_ty(&t a, &t b) -> bool {
1546-
let bool full = false;
1547-
full = full || a.has_vars;
1548-
full = full || a.has_locals;
1549-
full = full || b.has_vars;
1550-
full = full || b.has_locals;
1551-
if (full) {
1552-
ret eq_ty_full(a, b);
1553-
}
1554-
ret Box.ptr_eq[raw_t](a, b);
1555-
}
1539+
fn eq_ty(&t a, &t b) -> bool { ret Box.ptr_eq[raw_t](a, b); }
15561540

15571541

15581542
fn ann_to_type(&ast.ann ann) -> t {

0 commit comments

Comments
 (0)