File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
compiler/rustc_const_eval/src/interpret Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,12 @@ pub trait Machine<'tcx>: Sized {
147147 /// already been checked before.
148148 const ALL_CONSTS_ARE_PRECHECKED : bool = true ;
149149
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+
150156 /// Whether memory accesses should be alignment-checked.
151157 fn enforce_alignment ( ecx : & InterpCx < ' tcx , Self > ) -> bool ;
152158
You can’t perform that action at this time.
0 commit comments