summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/html/templates/short_item_info.html
blob: 75d155e91c203b027327ee52f325e44baf5249e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% match self %}
    {% when Self::Deprecation with { message } %}
        <div class="stab deprecated"> {# #}
            <span class="emoji">👎</span> {# #}
            <span>{{message|safe}}</span> {# #}
        </div> {# #}
    {% when Self::Unstable with { feature, tracking } %}
        <div class="stab unstable"> {# #}
            <span class="emoji">🔬</span> {# #}
            <span> {# #}
                This is a nightly-only experimental API. ({# #}
                <code>{{feature}}</code> {# #}
                {% match tracking %}
                    {% when Some with ((url, num)) %}
                        &nbsp;<a href="{{url}}{{num}}">#{{num}}</a> {# #}
                    {% when None %}
                {% endmatch %}
                ) {# #}
            </span> {# #}
        </div> {# #}
    {% when Self::Portability with { message } %}
        <div class="stab portability">{{message|safe}}</div> {# #}
{% endmatch %}