Skip to content

Commit 5238d04

Browse files
Don't render const keyword on stable
1 parent ca2639e commit 5238d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2002,7 +2002,7 @@ impl<'tcx> Clean<Item> for ty::AssociatedItem {
20022002
ty::TraitContainer(_) => self.defaultness.has_value()
20032003
};
20042004
if provided {
2005-
let constness = if cx.tcx.is_const_fn(self.def_id) {
2005+
let constness = if cx.tcx.is_min_const_fn(self.def_id) {
20062006
hir::Constness::Const
20072007
} else {
20082008
hir::Constness::NotConst

0 commit comments

Comments
 (0)