diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-09 13:13:31 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-11-09 15:18:52 +0100 |
| commit | 4a54ec8c18be3e1b66b9efc627e356904201a348 (patch) | |
| tree | e50c42af59f00761c77c40a4522365c677ab3929 /compiler/rustc_const_eval/src/interpret/mod.rs | |
| parent | 30a2ae6f05ff9e0abbaa9cd308bbceb6ddeede32 (diff) | |
| download | rust-4a54ec8c18be3e1b66b9efc627e356904201a348.tar.gz rust-4a54ec8c18be3e1b66b9efc627e356904201a348.zip | |
make return type of get_alloc_info a struct, and reduce some code duplication with validity checking
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/mod.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/mod.rs b/compiler/rustc_const_eval/src/interpret/mod.rs index 5e84626f77e..f5792aba207 100644 --- a/compiler/rustc_const_eval/src/interpret/mod.rs +++ b/compiler/rustc_const_eval/src/interpret/mod.rs @@ -31,7 +31,7 @@ pub use self::intern::{ }; pub(crate) use self::intrinsics::eval_nullary_intrinsic; pub use self::machine::{AllocMap, Machine, MayLeak, ReturnAction, compile_time_machine}; -pub use self::memory::{AllocKind, AllocRef, AllocRefMut, FnVal, Memory, MemoryKind}; +pub use self::memory::{AllocInfo, AllocKind, AllocRef, AllocRefMut, FnVal, Memory, MemoryKind}; use self::operand::Operand; pub use self::operand::{ImmTy, Immediate, OpTy}; pub use self::place::{MPlaceTy, MemPlaceMeta, PlaceTy, Writeable}; |
