Skip to content

Commit

Permalink
metadata: Encode attributes for const items
Browse files Browse the repository at this point in the history
Fix #19773

Together with #19774 (which this is rebased on):

Fix #18156, fix #19722, fix #19185
  • Loading branch information
tomjakubowski committed Dec 13, 2014
1 parent 25223c8 commit 31f75ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/metadata/encoder.rs
Expand Up @@ -1042,6 +1042,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
encode_bounds_and_type(rbml_w, ecx, &lookup_item_type(tcx, def_id));
encode_name(rbml_w, item.ident.name);
encode_path(rbml_w, path);
encode_attributes(rbml_w, item.attrs.as_slice());
encode_inlined_item(ecx, rbml_w, IIItemRef(item));
encode_visibility(rbml_w, vis);
encode_stability(rbml_w, stab);
Expand Down

0 comments on commit 31f75ac

Please sign in to comment.