Skip to content

Commit

Permalink
fix doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 19, 2020
1 parent 4d1ef03 commit 7febd5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_mir/src/transform/promote_consts.rs
Expand Up @@ -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,
Expand Down

0 comments on commit 7febd5a

Please sign in to comment.