File tree Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Expand file tree Collapse file tree 2 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 26ab36afb1e3bdce8c6cd995aa964d2730aec268
2
+ refs/heads/master: df914e89041bd6a133c6fb642144668bafae5a80
Original file line number Diff line number Diff line change @@ -362,12 +362,6 @@ fn mk_ty_full(&sty st, &Option.t[str] cname) -> t {
362
362
fn gen_ty_full ( & ctxt cx, & sty st, & Option . t[ str] cname ) -> t {
363
363
auto new_type = mk_ty_full ( st, cname) ;
364
364
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
-
371
365
// Is it interned?
372
366
alt ( cx. ts . others . find ( new_type) ) {
373
367
case ( some[ t] ( ?typ) ) {
@@ -1542,17 +1536,7 @@ fn eq_ty_full(&t a, &t b) -> bool {
1542
1536
1543
1537
// This is the equality function the public should use. It works as long as
1544
1538
// 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) ; }
1556
1540
1557
1541
1558
1542
fn ann_to_type ( & ast. ann ann ) -> t {
You can’t perform that action at this time.
0 commit comments