We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cad408 commit ef13555Copy full SHA for ef13555
src/librustdoc/clean/inline.rs
@@ -124,14 +124,7 @@ fn try_inline_def(cx: &core::DocContext,
124
pub fn load_attrs(tcx: &ty::ctxt, did: ast::DefId) -> Vec<clean::Attribute> {
125
let mut attrs = Vec::new();
126
csearch::get_item_attrs(&tcx.sess.cstore, did, |v| {
127
- attrs.extend(v.move_iter().map(|mut a| {
128
- // FIXME this isn't quite always true, it's just true about 99% of
129
- // the time when dealing with documentation. For example,
130
- // this would treat doc comments of the form `#[doc = "foo"]`
131
- // incorrectly.
132
- if a.name().get() == "doc" && a.value_str().is_some() {
133
- a.node.is_sugared_doc = true;
134
- }
+ attrs.extend(v.move_iter().map(|a| {
135
a.clean()
136
}));
137
});
0 commit comments