Remove doc(include)
This commit is contained in:
parent
c4c2ab57a4
commit
15fec1fb80
28 changed files with 79 additions and 449 deletions
|
@ -826,20 +826,6 @@ impl<'tcx> SaveContext<'tcx> {
|
|||
// FIXME: Should save-analysis beautify doc strings itself or leave it to users?
|
||||
result.push_str(&beautify_doc_string(val).as_str());
|
||||
result.push('\n');
|
||||
} else if self.tcx.sess.check_name(attr, sym::doc) {
|
||||
if let Some(meta_list) = attr.meta_item_list() {
|
||||
meta_list
|
||||
.into_iter()
|
||||
.filter(|it| it.has_name(sym::include))
|
||||
.filter_map(|it| it.meta_item_list().map(|l| l.to_owned()))
|
||||
.flat_map(|it| it)
|
||||
.filter(|meta| meta.has_name(sym::contents))
|
||||
.filter_map(|meta| meta.value_str())
|
||||
.for_each(|val| {
|
||||
result.push_str(&val.as_str());
|
||||
result.push('\n');
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue