Skip to content

Commit 7febd5a

Browse files
committed
fix doc comment
1 parent 4d1ef03 commit 7febd5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_mir/src/transform/promote_consts.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ impl std::ops::Deref for Validator<'a, 'tcx> {
297297
struct Unpromotable;
298298

299299
impl<'tcx> Validator<'_, 'tcx> {
300-
//! Determines if this code could be executed at runtime and thus is subject to codegen.
301-
//! That means even unused constants need to be evaluated.
302-
//!
303-
//! `const_kind` should not be used in this file other than through this method!
300+
/// Determines if this code could be executed at runtime and thus is subject to codegen.
301+
/// That means even unused constants need to be evaluated.
302+
///
303+
/// `const_kind` should not be used in this file other than through this method!
304304
fn maybe_runtime(&self) -> bool {
305305
match self.const_kind {
306306
None | Some(hir::ConstContext::ConstFn) => true,

0 commit comments

Comments
 (0)