We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d0a7de commit c74f2dcCopy full SHA for c74f2dc
src/librustdoc/html/templates/short_item_info.html
@@ -2,7 +2,7 @@
2
{% when Self::Deprecation with { message } %}
3
<div class="stab deprecated"> {# #}
4
<span class="emoji">👎</span> {# #}
5
- <span>{{message}}</span> {# #}
+ <span>{{message|safe}}</span> {# #}
6
</div> {# #}
7
{% when Self::Unstable with { feature, tracking } %}
8
<div class="stab unstable"> {# #}
tests/rustdoc/deprecated.rs
@@ -28,6 +28,6 @@ pub struct V;
28
pub struct W;
29
30
// @matches deprecated/struct.X.html '//*[@class="stab deprecated"]' \
31
-// 'Deprecated: shorthand reason$'
32
-#[deprecated = "shorthand reason"]
+// 'Deprecated: shorthand reason: code$'
+#[deprecated = "shorthand reason: `code`"]
33
pub struct X;
0 commit comments