From 7febd5a25770cb20805f20e43ab0d773ed2834ed Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 7 Sep 2020 13:22:59 +0200 Subject: [PATCH] fix doc comment --- compiler/rustc_mir/src/transform/promote_consts.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/rustc_mir/src/transform/promote_consts.rs b/compiler/rustc_mir/src/transform/promote_consts.rs index a4a6a7b03aba..e1d704cb6806 100644 --- a/compiler/rustc_mir/src/transform/promote_consts.rs +++ b/compiler/rustc_mir/src/transform/promote_consts.rs @@ -297,10 +297,10 @@ impl std::ops::Deref for Validator<'a, 'tcx> { struct Unpromotable; impl<'tcx> Validator<'_, 'tcx> { - //! Determines if this code could be executed at runtime and thus is subject to codegen. - //! That means even unused constants need to be evaluated. - //! - //! `const_kind` should not be used in this file other than through this method! + /// Determines if this code could be executed at runtime and thus is subject to codegen. + /// That means even unused constants need to be evaluated. + /// + /// `const_kind` should not be used in this file other than through this method! fn maybe_runtime(&self) -> bool { match self.const_kind { None | Some(hir::ConstContext::ConstFn) => true,