Skip to content

Commit 07df147

Browse files
committed
Rebase fallout
1 parent 7d5f36a commit 07df147

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/librustc_mir/const_eval.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ use crate::interpret::{intern_const_alloc_recursive, ConstValue, InterpCx};
1010

1111
mod error;
1212
mod eval_queries;
13+
mod machine;
1314

1415
pub use error::*;
1516
pub use eval_queries::*;
17+
pub use machine::*;
1618

1719
/// Extracts a field of a (variant of a) const.
1820
// this function uses `unwrap` copiously, because an already validated constant must have valid

src/librustc_mir/const_eval/eval_queries.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{error_to_const_error, CompileTimeEvalContext, CompileTimeInterpreter};
1+
use super::{error_to_const_error, CompileTimeEvalContext, CompileTimeInterpreter, MemoryExtra};
22
use crate::interpret::eval_nullary_intrinsic;
33
use crate::interpret::{
44
intern_const_alloc_recursive, Allocation, ConstValue, GlobalId, ImmTy, Immediate, InterpCx,

src/librustc_mir/const_eval/machine.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ pub struct CompileTimeInterpreter<'mir, 'tcx> {
8080
#[derive(Copy, Clone, Debug)]
8181
pub struct MemoryExtra {
8282
/// Whether this machine may read from statics
83-
can_access_statics: bool,
83+
pub(super) can_access_statics: bool,
8484
}
8585

8686
impl<'mir, 'tcx> CompileTimeInterpreter<'mir, 'tcx> {
87-
fn new() -> Self {
87+
pub(super) fn new() -> Self {
8888
CompileTimeInterpreter {
8989
loop_detector: Default::default(),
9090
steps_since_detector_enabled: -STEPS_UNTIL_DETECTOR_ENABLED,

0 commit comments

Comments
 (0)