We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57f971b commit 4b20221Copy full SHA for 4b20221
src/librustc_save_analysis/lib.rs
@@ -759,7 +759,11 @@ fn docs_for_attrs(attrs: &[Attribute]) -> String {
759
for attr in attrs {
760
if attr.name() == doc {
761
if let Some(ref val) = attr.value_str() {
762
- result.push_str(&strip_doc_comment_decoration(val));
+ if attr.node.is_sugared_doc {
763
+ result.push_str(&strip_doc_comment_decoration(val));
764
+ } else {
765
+ result.push_str(val);
766
+ }
767
result.push('\n');
768
}
769
0 commit comments