mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
fix doc comment
This commit is contained in:
parent
4d1ef03c9e
commit
7febd5a257
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user