diff options
| author | b-naber <bn263@gmx.de> | 2022-04-21 19:35:06 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-04-21 23:11:06 +0200 |
| commit | bc698c73e90c253b0d37be8127b3fb542d9e95c2 (patch) | |
| tree | 14bc8c30dbcf7e6117798bd235a92f0caaaad399 /compiler/rustc_const_eval/src/interpret/mod.rs | |
| parent | 28af967bb9165999294250dc3f3a56c2193c35d9 (diff) | |
| download | rust-bc698c73e90c253b0d37be8127b3fb542d9e95c2.tar.gz rust-bc698c73e90c253b0d37be8127b3fb542d9e95c2.zip | |
deduplicate a lot of code
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/mod.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/mod.rs b/compiler/rustc_const_eval/src/interpret/mod.rs index dba746e72e2..69d6c8470a2 100644 --- a/compiler/rustc_const_eval/src/interpret/mod.rs +++ b/compiler/rustc_const_eval/src/interpret/mod.rs @@ -14,7 +14,7 @@ mod terminator; mod traits; mod util; mod validity; -pub(crate) mod visitor; +mod visitor; pub use rustc_middle::mir::interpret::*; // have all the `interpret` symbols in one place: here @@ -27,7 +27,7 @@ pub use self::memory::{AllocCheck, AllocRef, AllocRefMut, FnVal, Memory, MemoryK pub use self::operand::{ImmTy, Immediate, OpTy, Operand}; pub use self::place::{MPlaceTy, MemPlace, MemPlaceMeta, Place, PlaceTy}; pub use self::validity::{CtfeValidationMode, RefTracking}; -pub use self::visitor::{MutValueVisitor, ValueVisitor}; +pub use self::visitor::{MutValueVisitor, Value, ValueVisitor}; crate use self::intrinsics::eval_nullary_intrinsic; use eval_context::{from_known_layout, mir_assign_valid_types}; |
