@@ -2144,7 +2144,7 @@ fn stability_tags(item: &clean::Item) -> String {
21442144 if item
21452145 . stability
21462146 . 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" )
21482148 == Some ( true )
21492149 {
21502150 tags += & tag_html ( "unstable" , "Experimental" ) ;
@@ -2195,25 +2195,25 @@ fn short_stability(item: &clean::Item, cx: &Context) -> Vec<String> {
21952195
21962196 // Render unstable items. But don't render "rustc_private" crates (internal compiler crates).
21972197 // 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+ {
22012203 let mut message =
22022204 "<span class='emoji'>🔬</span> This is a nightly-only experimental API." . to_owned ( ) ;
22032205
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+ ) ) ;
22152213 }
22162214
2215+ message. push_str ( & format ! ( " ({})" , feature) ) ;
2216+
22172217 if let Some ( unstable_reason) = & stab. unstable_reason {
22182218 let mut ids = cx. id_map . borrow_mut ( ) ;
22192219 message = format ! (
0 commit comments