diff options
| author | Karan Janthe <karanjanthe@gmail.com> | 2025-08-23 23:10:48 +0000 |
|---|---|---|
| committer | Karan Janthe <karanjanthe@gmail.com> | 2025-09-19 04:02:20 +0000 |
| commit | 664e83b3e76b51fb5192e74a64eef3bc5bbd4e32 (patch) | |
| tree | e777129c436cdcb8fa1cfaec619a6c8afc586395 /compiler/rustc_middle/src/ty | |
| parent | 5d3ebc3804299503387b7ea1427f1619d410c2b2 (diff) | |
| download | rust-664e83b3e76b51fb5192e74a64eef3bc5bbd4e32.tar.gz rust-664e83b3e76b51fb5192e74a64eef3bc5bbd4e32.zip | |
added typetree support for memcpy
Diffstat (limited to 'compiler/rustc_middle/src/ty')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index e7130757f1d..741b5d7fd4e 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -2280,12 +2280,12 @@ pub fn typetree_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> TypeTree { let child = typetree_from_ty(tcx, inner_ty); return TypeTree(vec![Type { offset: -1, - size: 8, // TODO(KMJ-007): Get actual pointer size from target + size: tcx.data_layout.pointer_size().bytes_usize(), kind: Kind::Pointer, child, }]); } - // TODO(KMJ-007): Handle arrays, slices, structs, and other complex types + // FIXME(KMJ-007): Handle arrays, slices, structs, and other complex types TypeTree::new() } |
