We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f51ad2 commit 44f6f52Copy full SHA for 44f6f52
src/librustc/metadata/encoder.rs
@@ -1478,6 +1478,7 @@ fn encode_info_for_foreign_item(ecx: &EncodeContext,
1478
if abi == abi::RustIntrinsic {
1479
encode_inlined_item(ecx, rbml_w, IIForeignRef(nitem));
1480
}
1481
+ encode_attributes(rbml_w, &*nitem.attrs);
1482
encode_symbol(ecx, rbml_w, nitem.id);
1483
1484
ast::ForeignItemStatic(_, mutbl) => {
@@ -1488,6 +1489,7 @@ fn encode_info_for_foreign_item(ecx: &EncodeContext,
1488
1489
1490
encode_bounds_and_type(rbml_w, ecx,
1491
&lookup_item_type(ecx.tcx,local_def(nitem.id)));
1492
1493
1494
encode_name(rbml_w, nitem.ident.name);
1495
0 commit comments