Skip to content

Commit 892f7c4

Browse files
committed
renames EvalContext to InterpretCx in docs and comments.
1 parent 630d5a4 commit 892f7c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/mir/interpret/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ impl<'tcx> AllocMap<'tcx> {
344344
}
345345
}
346346

347-
/// Returns `None` in case the `AllocId` is dangling. An `EvalContext` can still have a
347+
/// Returns `None` in case the `AllocId` is dangling. An `InterpretCx` can still have a
348348
/// local `Allocation` for that `AllocId`, but having such an `AllocId` in a constant is
349349
/// illegal and will likely ICE.
350350
/// This function exists to allow const eval to detect the difference between evaluation-

src/librustc_mir/const_eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const STEPS_UNTIL_DETECTOR_ENABLED: isize = 1_000_000;
3434
/// Should be a power of two for performance reasons.
3535
const DETECTOR_SNAPSHOT_PERIOD: isize = 256;
3636

37-
/// The `EvalContext` is only meant to be used to do field and index projections into constants for
37+
/// The `InterpretCx` is only meant to be used to do field and index projections into constants for
3838
/// `simd_shuffle` and const patterns in match arms.
3939
///
4040
/// The function containing the `match` that is currently being analyzed may have generic bounds

0 commit comments

Comments
 (0)