summaryrefslogtreecommitdiff
path: root/compiler/rustc_const_eval/src/const_eval/machine.rs
diff options
context:
space:
mode:
author5225225 <5225225@mailbox.org>2022-07-14 22:42:47 +0100
committer5225225 <5225225@mailbox.org>2022-07-14 22:55:17 +0100
commit27412d1e3e128349bc515c16ce882860e20f037d (patch)
tree81857e48569def091e13e509a418b4ad54ae212b /compiler/rustc_const_eval/src/const_eval/machine.rs
parentc2f428d2f3340a0e7d995f4726223db91b93704c (diff)
downloadrust-27412d1e3e128349bc515c16ce882860e20f037d.tar.gz
Use constant eval to do strict validity checks
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval/machine.rs')
-rw-r--r--compiler/rustc_const_eval/src/const_eval/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/machine.rs b/compiler/rustc_const_eval/src/const_eval/machine.rs
index 29ab1d18771..e00e667fb71 100644
--- a/compiler/rustc_const_eval/src/const_eval/machine.rs
+++ b/compiler/rustc_const_eval/src/const_eval/machine.rs
@@ -104,7 +104,7 @@ pub struct CompileTimeInterpreter<'mir, 'tcx> {
}
impl<'mir, 'tcx> CompileTimeInterpreter<'mir, 'tcx> {
- pub(super) fn new(const_eval_limit: Limit, can_access_statics: bool) -> Self {
+ pub(crate) fn new(const_eval_limit: Limit, can_access_statics: bool) -> Self {
CompileTimeInterpreter {
steps_remaining: const_eval_limit.0,
stack: Vec::new(),