aboutsummaryrefslogtreecommitdiff
path: root/lib/std/meta.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2021-08-30 02:54:03 +0200
committerRobin Voetter <robin@voetter.nl>2021-09-20 02:29:04 +0200
commitc5945467acfd580cb3413250ef52f13dc412a8cf (patch)
treecd56aa35c06a65ec51a3ade3a3bbb90eb33cb8a1 /lib/std/meta.zig
parent7a5d0cdf45f861f63d89666607dc86b3a2810826 (diff)
downloadzig-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.zig3
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,