@@ -2144,7 +2144,7 @@ fn stability_tags(item: &clean::Item) -> String {
2144
2144
if item
2145
2145
. stability
2146
2146
. as_ref ( )
2147
- . map ( |s| s. level == stability:: Unstable && s. feature . as_deref ( ) != Some ( "rustc_private" ) )
2147
+ . map ( |s| s. level == stability:: Unstable && s. feature != "rustc_private" )
2148
2148
== Some ( true )
2149
2149
{
2150
2150
tags += & tag_html ( "unstable" , "Experimental" ) ;
@@ -2195,25 +2195,25 @@ fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
2195
2195
2196
2196
// Render unstable items. But don't render "rustc_private" crates (internal compiler crates).
2197
2197
// Those crates are permanently unstable so it makes no sense to render "unstable" everywhere.
2198
- if let Some ( stab) = item. stability . as_ref ( ) . filter ( |stab| {
2199
- stab. level == stability:: Unstable && stab. feature . as_deref ( ) != Some ( "rustc_private" )
2200
- } ) {
2198
+ if let Some ( stab) = item
2199
+ . stability
2200
+ . as_ref ( )
2201
+ . filter ( |stab| stab. level == stability:: Unstable && stab. feature != "rustc_private" )
2202
+ {
2201
2203
let mut message =
2202
2204
"<span class='emoji'>🔬</span> This is a nightly-only experimental API." . to_owned ( ) ;
2203
2205
2204
- if let Some ( feature) = stab. feature . as_deref ( ) {
2205
- let mut feature = format ! ( "<code>{}</code>" , Escape ( & feature) ) ;
2206
- if let ( Some ( url) , Some ( issue) ) = ( & cx. shared . issue_tracker_base_url , stab. issue ) {
2207
- feature. push_str ( & format ! (
2208
- " <a href=\" {url}{issue}\" >#{issue}</a>" ,
2209
- url = url,
2210
- issue = issue
2211
- ) ) ;
2212
- }
2213
-
2214
- message. push_str ( & format ! ( " ({})" , feature) ) ;
2206
+ let mut feature = format ! ( "<code>{}</code>" , Escape ( & stab. feature) ) ;
2207
+ if let ( Some ( url) , Some ( issue) ) = ( & cx. shared . issue_tracker_base_url , stab. issue ) {
2208
+ feature. push_str ( & format ! (
2209
+ " <a href=\" {url}{issue}\" >#{issue}</a>" ,
2210
+ url = url,
2211
+ issue = issue
2212
+ ) ) ;
2215
2213
}
2216
2214
2215
+ message. push_str ( & format ! ( " ({})" , feature) ) ;
2216
+
2217
2217
if let Some ( unstable_reason) = & stab. unstable_reason {
2218
2218
let mut ids = cx. id_map . borrow_mut ( ) ;
2219
2219
message = format ! (
0 commit comments