Skip to content

Commit

Permalink
renames EvalContext to InterpretCx in docs and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenta7777 committed Mar 27, 2019
1 parent 630d5a4 commit 892f7c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc/mir/interpret/mod.rs
Expand Up @@ -344,7 +344,7 @@ impl<'tcx> AllocMap<'tcx> {
}
}

/// Returns `None` in case the `AllocId` is dangling. An `EvalContext` can still have a
/// Returns `None` in case the `AllocId` is dangling. An `InterpretCx` can still have a
/// local `Allocation` for that `AllocId`, but having such an `AllocId` in a constant is
/// illegal and will likely ICE.
/// This function exists to allow const eval to detect the difference between evaluation-
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_mir/const_eval.rs
Expand Up @@ -34,7 +34,7 @@ const STEPS_UNTIL_DETECTOR_ENABLED: isize = 1_000_000;
/// Should be a power of two for performance reasons.
const DETECTOR_SNAPSHOT_PERIOD: isize = 256;

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

0 comments on commit 892f7c4

Please sign in to comment.