diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-05-08 15:19:14 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-05-08 15:19:14 +0200 |
| commit | abbc7365a726269e13b7ee2864bb6086dfc41d69 (patch) | |
| tree | 5cfc6a71b16ad84b00aca4a7076966160d4dbc9a /src/librustdoc/html/render.rs | |
| parent | 97f3eeec8216d7155c24674b9be55e7c672bcae3 (diff) | |
| download | rust-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.rs | 5 |
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) { |
