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 0439556 commit 4284aadCopy full SHA for 4284aad
src/librustdoc/clean/mod.rs
@@ -901,7 +901,8 @@ impl Clean<Item> for doctree::Function<'_> {
901
902
let did = cx.tcx.hir().local_def_id(self.id);
903
let constness = if is_const_fn(cx.tcx, did.to_def_id())
904
- && !is_unstable_const_fn(cx.tcx, did.to_def_id()).is_some() {
+ && !is_unstable_const_fn(cx.tcx, did.to_def_id()).is_some()
905
+ {
906
hir::Constness::Const
907
} else {
908
hir::Constness::NotConst
0 commit comments