We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eca99a commit f4bc4cdCopy full SHA for f4bc4cd
compiler/rustc_const_eval/src/interpret/machine.rs
@@ -147,6 +147,12 @@ pub trait Machine<'tcx>: Sized {
147
/// already been checked before.
148
const ALL_CONSTS_ARE_PRECHECKED: bool = true;
149
150
+ /// Determines whether rustc_const_eval functions that make use of the [Machine] should make
151
+ /// tracing calls (to the `tracing` library). By default this is `false`, meaning the tracing
152
+ /// calls will supposedly be optimized out. This flag is set to `true` inside Miri, to allow
153
+ /// tracing the interpretation steps, among other things.
154
+ const TRACING_ENABLED: bool = false;
155
+
156
/// Whether memory accesses should be alignment-checked.
157
fn enforce_alignment(ecx: &InterpCx<'tcx, Self>) -> bool;
158
0 commit comments