metadata: Encode attributes for const items
Fix #19773 Together with #19774 (which this is rebased on): Fix #18156, fix #19722, fix #19185
This commit is contained in:
parent
25223c8ef8
commit
31f75ac5c5
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue