about summary refs log tree commit diff
path: root/src/librustc_middle/mir/interpret/pointer.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-208/+0
2020-08-14Rework `rustc_serialize`Matthew Jasper-1/+1
- Move the type parameter from `encode` and `decode` methods to the trait. - Remove `UseSpecialized(En|De)codable` traits. - Remove blanket impls for references. - Add `RefDecodable` trait to allow deserializing to arena-allocated references safely. - Remove ability to (de)serialize HIR. - Create proc-macros `(Ty)?(En|De)codable` to help implement these new traits.
2020-05-27Add additional checks for isize overflowJoe Richey-2/+13
We now perform the correct checks even if the pointer size differs between the host and target. Signed-off-by: Joe Richey <joerichey@google.com>
2020-05-26librustc_middle: Add function for computing unsigned absJoe Richey-8/+5
This is tricky to get right if we want to avoid panicking or wrapping. Signed-off-by: Joe Richey <joerichey@google.com>
2020-05-12Pointer printing: do not print 0 offsetRalf Jung-10/+18
2020-05-02Rollup merge of #71738 - RalfJung:pointer-no-alloc-id, r=oli-obkRalf Jung-10/+6
remove AllocId generalization of Pointer This was only needed for the "snapshot" machinery, which is gone. r? @oli-obk
2020-05-01remove AllocId generalization of PointerRalf Jung-10/+6
2020-05-01rename InvalidIntPtrUsageRalf Jung-27/+1
2020-04-26organize Debug/Display impls a bit more; avoid sign-ignorant decimal displayRalf Jung-7/+9
2020-04-26print pointers more compactly when they are too bigRalf Jung-4/+20
2020-04-23Add leading 0x to offset in Debug fmt of PointerDavid Cook-2/+2
2020-04-02nix rustc_target::abi::* reexport in ty::layoutMazdak Farrokhzad-4/+3
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-0/+205