We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ca363 commit 012e306Copy full SHA for 012e306
clippy_utils/src/consts.rs
@@ -1,3 +1,7 @@
1
+//! A simple const eval API, for use on arbitrary HIR expressions.
2
+//!
3
+//! This cannot use rustc's const eval, aka miri, as arbitrary HIR expressions cannot be lowered to
4
+//! executable MIR bodies, so we have to do this instead.
5
#![allow(clippy::float_cmp)]
6
7
use crate::macros::HirNode;
@@ -379,6 +383,8 @@ impl Ord for FullInt {
379
383
/// The context required to evaluate a constant expression.
380
384
///
381
385
/// This is currently limited to constant folding and reading the value of named constants.
386
+///
387
+/// See the module level documentation for some context.
382
388
pub struct ConstEvalCtxt<'tcx> {
389
tcx: TyCtxt<'tcx>,
390
param_env: ParamEnv<'tcx>,
0 commit comments