diff options
| author | Robin Voetter <robin@voetter.nl> | 2021-08-30 02:54:03 +0200 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2021-09-20 02:29:04 +0200 |
| commit | c5945467acfd580cb3413250ef52f13dc412a8cf (patch) | |
| tree | cd56aa35c06a65ec51a3ade3a3bbb90eb33cb8a1 /lib/std/meta.zig | |
| parent | 7a5d0cdf45f861f63d89666607dc86b3a2810826 (diff) | |
| download | zig-c5945467acfd580cb3413250ef52f13dc412a8cf.tar.gz zig-c5945467acfd580cb3413250ef52f13dc412a8cf.zip | |
Address Spaces: Pointer and function info in @Type
Diffstat (limited to 'lib/std/meta.zig')
| -rw-r--r-- | lib/std/meta.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig index a1bfacf597..62866bb711 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -235,6 +235,7 @@ pub fn Sentinel(comptime T: type, comptime sentinel_val: Elem(T)) type { .is_const = info.is_const, .is_volatile = info.is_volatile, .alignment = info.alignment, + .address_space = info.address_space, .child = @Type(.{ .Array = .{ .len = array_info.len, @@ -254,6 +255,7 @@ pub fn Sentinel(comptime T: type, comptime sentinel_val: Elem(T)) type { .is_const = info.is_const, .is_volatile = info.is_volatile, .alignment = info.alignment, + .address_space = info.address_space, .child = info.child, .is_allowzero = info.is_allowzero, .sentinel = sentinel_val, @@ -271,6 +273,7 @@ pub fn Sentinel(comptime T: type, comptime sentinel_val: Elem(T)) type { .is_const = ptr_info.is_const, .is_volatile = ptr_info.is_volatile, .alignment = ptr_info.alignment, + .address_space = ptr_info.address_space, .child = ptr_info.child, .is_allowzero = ptr_info.is_allowzero, .sentinel = sentinel_val, |
