From f82fb308af00567f80d0cbb23361a7fa8327d5df Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Mon, 21 Jun 2021 20:21:37 +0800 Subject: [PATCH] Update comment regarding staged_api --- src/librustdoc/html/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 11d40d9898c0..58c609cf252c 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -1277,7 +1277,7 @@ crate fn print_constness_with_space( s: Option<&ConstStability>, ) -> &'static str { match (c, s) { - // const stable or no stability attribute + // const stable or when feature(staged_api) is not set ( hir::Constness::Const, Some(ConstStability { level: StabilityLevel::Stable { .. }, .. }),