Skip to content

Commit abbc736

Browse files
Add emoji for deprecated messages
1 parent 97f3eee commit abbc736

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustdoc/html/render.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2281,7 +2281,10 @@ fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
22812281
);
22822282
message.push_str(&format!(": {}", html.to_string()));
22832283
}
2284-
stability.push(format!("<div class='stab deprecated'>{}</div>", message));
2284+
stability.push(format!(
2285+
"<div class='stab deprecated'><span class='emoji'>👎</span> {}</div>",
2286+
message,
2287+
));
22852288
}
22862289

22872290
if let Some(stab) = item.stability.as_ref().filter(|stab| stab.level == stability::Unstable) {

0 commit comments

Comments
 (0)