Skip to content

Commit 4cf22cb

Browse files
committed
rebased
1 parent 310f5bd commit 4cf22cb

File tree

1 file changed

+2
-0
lines changed
  • src/librustc_save_analysis

1 file changed

+2
-0
lines changed

src/librustc_save_analysis/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
133133
parent: None,
134134
docs: docs_for_attrs(&item.attrs),
135135
sig: self.sig_base_extern(item),
136+
attributes: item.attrs.clone(),
136137
}))
137138
}
138139
ast::ForeignItemKind::Static(ref ty, m) => {
@@ -151,6 +152,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
151152
visibility: From::from(&item.vis),
152153
docs: docs_for_attrs(&item.attrs),
153154
sig: Some(self.sig_base_extern(item)),
155+
attributes: item.attrs.clone(),
154156
}))
155157
}
156158
}

0 commit comments

Comments
 (0)