Skip to content

Commit 790185b

Browse files
committed
Rust: Add placeholder declarations for &mut and *mut
1 parent b1ed72d commit 790185b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rust/tools/builtins/types.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ pub struct f64;
2626

2727
struct Slice<TSlice>;
2828
struct Array<TArray, const N: usize>;
29-
struct Ref<TRef>; // todo: add mut variant
30-
struct Ptr<TPtr>; // todo: add mut variant
29+
struct Ref<TRef>;
30+
struct RefMut<TRefMut>;
31+
struct Ptr<TPtr>;
32+
struct PtrMut<TPtrMut>;
3133

3234
// tuples
3335
struct Tuple0;

0 commit comments

Comments
 (0)