Skip to content

Commit 1277666

Browse files
committed
Merge pull request #19793 from tomjakubowski/metadata-const-attrs
metadata: Encode attributes for const items Reviewed-by: alexcrichton
2 parents 7aeecf0 + 31f75ac commit 1277666

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/metadata/encoder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
10561056
encode_bounds_and_type(rbml_w, ecx, &lookup_item_type(tcx, def_id));
10571057
encode_name(rbml_w, item.ident.name);
10581058
encode_path(rbml_w, path);
1059+
encode_attributes(rbml_w, item.attrs.as_slice());
10591060
encode_inlined_item(ecx, rbml_w, IIItemRef(item));
10601061
encode_visibility(rbml_w, vis);
10611062
encode_stability(rbml_w, stab);

0 commit comments

Comments
 (0)