about summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-05-08 15:19:14 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-05-08 15:19:14 +0200
commitabbc7365a726269e13b7ee2864bb6086dfc41d69 (patch)
tree5cfc6a71b16ad84b00aca4a7076966160d4dbc9a /src/librustdoc/html/render.rs
parent97f3eeec8216d7155c24674b9be55e7c672bcae3 (diff)
downloadrust-abbc7365a726269e13b7ee2864bb6086dfc41d69.tar.gz
rust-abbc7365a726269e13b7ee2864bb6086dfc41d69.zip
Add emoji for deprecated messages
Diffstat (limited to 'src/librustdoc/html/render.rs')
-rw-r--r--src/librustdoc/html/render.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 666e59b9a04..82f91e232df 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -2281,7 +2281,10 @@ fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
             );
             message.push_str(&format!(": {}", html.to_string()));
         }
-        stability.push(format!("<div class='stab deprecated'>{}</div>", message));
+        stability.push(format!(
+            "<div class='stab deprecated'><span class='emoji'>👎</span> {}</div>",
+            message,
+        ));
     }
 
     if let Some(stab) = item.stability.as_ref().filter(|stab| stab.level == stability::Unstable) {