We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341866a commit e15e1b2Copy full SHA for e15e1b2
src/librustdoc/html/render/search_index.rs
@@ -93,7 +93,7 @@ pub(crate) fn build_index(
93
),
94
aliases: item.attrs.get_doc_aliases(),
95
deprecation: item.deprecation(tcx),
96
- is_unstable: item.stability(tcx).map(|x| x.is_unstable()).unwrap_or(false),
+ is_unstable: item.stability(tcx).is_some_and(|x| x.is_unstable()),
97
});
98
}
99
0 commit comments