Skip to content

Commit 77d2a11

Browse files
committed
rollup merge of rust-lang#19793: tomjakubowski/metadata-const-attrs
Fix rust-lang#19773 Together with rust-lang#19774 (which this is rebased on): Fix rust-lang#18156, fix rust-lang#19722, fix rust-lang#19185 r? @alexcrichton (since this was your suggestion!)
2 parents 53982b6 + 31f75ac commit 77d2a11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/metadata/encoder.rs

+1
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)