diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2015-05-26 02:28:04 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2015-05-26 12:33:53 +0300 |
| commit | 0ec3183df8d0cdccc735fa6572d664b43dbb5e31 (patch) | |
| tree | feb270a4f3d85ee06b91816690ea53b46febf544 /src/librustc/middle/astencode.rs | |
| parent | f4ee40ead271bffc1a251f03ccd60de4250f72e3 (diff) | |
| download | rust-0ec3183df8d0cdccc735fa6572d664b43dbb5e31.tar.gz rust-0ec3183df8d0cdccc735fa6572d664b43dbb5e31.zip | |
Remove ObjectCastMap
Diffstat (limited to 'src/librustc/middle/astencode.rs')
| -rw-r--r-- | src/librustc/middle/astencode.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/librustc/middle/astencode.rs b/src/librustc/middle/astencode.rs index bfc74ccc243..fda57c9dc61 100644 --- a/src/librustc/middle/astencode.rs +++ b/src/librustc/middle/astencode.rs @@ -1117,13 +1117,6 @@ fn encode_side_tables_for_id(ecx: &e::EncodeContext, }) } - if let Some(trait_ref) = tcx.object_cast_map.borrow().get(&id) { - rbml_w.tag(c::tag_table_object_cast_map, |rbml_w| { - rbml_w.id(id); - rbml_w.emit_trait_ref(ecx, &trait_ref.0); - }) - } - if let Some(adjustment) = tcx.adjustments.borrow().get(&id) { match *adjustment { ty::AdjustDerefRef(ref adj) => { @@ -1708,11 +1701,6 @@ fn decode_side_tables(dcx: &DecodeContext, }; dcx.tcx.method_map.borrow_mut().insert(method_call, method); } - c::tag_table_object_cast_map => { - let trait_ref = val_dsr.read_poly_trait_ref(dcx); - dcx.tcx.object_cast_map.borrow_mut() - .insert(id, trait_ref); - } c::tag_table_adjustments => { let adj: ty::AutoAdjustment = val_dsr.read_auto_adjustment(dcx); dcx.tcx.adjustments.borrow_mut().insert(id, adj); |
