about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-20 07:10:35 +0100
committerGitHub <noreply@github.com>2023-03-20 07:10:35 +0100
commit130923586d109afbd0eebe87a020c2b971652962 (patch)
treebd6f8517c64a103a210a406efc1b0bfbf34d8c20 /src
parenteb1f8dc2cb3b0a99d7fac7bac9e2bfba53c8fc0b (diff)
parentc74f2dc5884985ec93f77263769bc26eb0f472d9 (diff)
downloadrust-130923586d109afbd0eebe87a020c2b971652962.tar.gz
rust-130923586d109afbd0eebe87a020c2b971652962.zip
Rollup merge of #109375 - clubby789:unescape-deprecated-doc, r=jsha
rustdoc: Fix improper escaping of deprecation reasons

Fix #109374

r? `@jsha`
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/templates/short_item_info.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/templates/short_item_info.html b/src/librustdoc/html/templates/short_item_info.html
index e3125af0e47..75d155e91c2 100644
--- a/src/librustdoc/html/templates/short_item_info.html
+++ b/src/librustdoc/html/templates/short_item_info.html
@@ -2,7 +2,7 @@
     {% when Self::Deprecation with { message } %}
         <div class="stab deprecated"> {# #}
             <span class="emoji">👎</span> {# #}
-            <span>{{message}}</span> {# #}
+            <span>{{message|safe}}</span> {# #}
         </div> {# #}
     {% when Self::Unstable with { feature, tracking } %}
         <div class="stab unstable"> {# #}