File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ enum astencode_tag { // Reserves 0x50 -- 0x6f
120
120
tag_table_spill = 0x5f,
121
121
tag_table_method_map = 0x60,
122
122
tag_table_vtable_map = 0x61,
123
- tag_table_adjustments = 0x62
123
+ tag_table_adjustments = 0x62,
124
+ tag_table_legacy_boxed_trait = 0x63
124
125
}
125
126
126
127
type link_meta = {name: ~str, vers: ~str, extras_hash: ~str};
Original file line number Diff line number Diff line change @@ -832,6 +832,12 @@ fn encode_side_tables_for_id(ecx: @e::encode_ctxt,
832
832
}
833
833
}
834
834
}
835
+
836
+ do option:: iter ( & tcx. legacy_boxed_traits . find ( id) ) |_x| {
837
+ do ebml_w. tag ( c:: tag_table_legacy_boxed_trait) {
838
+ ebml_w. id ( id) ;
839
+ }
840
+ }
835
841
}
836
842
837
843
trait doc_decoder_helpers {
@@ -963,6 +969,8 @@ fn decode_side_tables(xcx: extended_decode_ctxt,
963
969
} else if tag == ( c:: tag_table_adjustments as uint ) {
964
970
let adj = @ty:: deserialize_AutoAdjustment ( val_dsr) . tr ( xcx) ;
965
971
dcx. tcx . adjustments . insert ( id, adj) ;
972
+ } else if tag == ( c:: tag_table_legacy_boxed_trait as uint ) {
973
+ dcx. tcx . legacy_boxed_traits . insert ( id, ( ) ) ;
966
974
} else {
967
975
xcx. dcx . tcx . sess . bug (
968
976
fmt ! ( "unknown tag found in side tables: %x" , tag) ) ;
Original file line number Diff line number Diff line change @@ -356,7 +356,8 @@ type ctxt =
356
356
inferred_modes : HashMap < ast:: node_id , ast:: mode > ,
357
357
adjustments : HashMap < ast:: node_id , @AutoAdjustment > ,
358
358
normalized_cache : HashMap < t , t > ,
359
- lang_items : middle:: lang_items:: LanguageItems } ;
359
+ lang_items : middle:: lang_items:: LanguageItems ,
360
+ legacy_boxed_traits : HashMap < node_id , ( ) > } ;
360
361
361
362
enum tbox_flag {
362
363
has_params = 1 ,
@@ -875,7 +876,8 @@ fn mk_ctxt(s: session::session,
875
876
inferred_modes: HashMap ( ) ,
876
877
adjustments: HashMap ( ) ,
877
878
normalized_cache: new_ty_hash ( ) ,
878
- lang_items: move lang_items}
879
+ lang_items: move lang_items,
880
+ legacy_boxed_traits: HashMap ( ) }
879
881
}
880
882
881
883
You can’t perform that action at this time.
0 commit comments