diff --git a/lib/std/meta/trait.zig b/lib/std/meta/trait.zig index 1656a937980604d2bec551fbbd6a38e5a80543ac..ae3b77b8cc2b9dffd0790668dfa728f213b12e7f 100644 --- a/lib/std/meta/trait.zig +++ b/lib/std/meta/trait.zig @@ -476,7 +476,6 @@ pub fn hasUniqueRepresentation(comptime T: type) bool { else => return false, // TODO can we know if it's true for some of these types ? .AnyFrame, - .Bool, .BoundFn, .Enum, .ErrorSet, @@ -484,6 +483,8 @@ pub fn hasUniqueRepresentation(comptime T: type) bool { .Pointer, => return true, + .Bool => return false, + // The padding bits are undefined. .Int => |info| return (info.bits % 8) == 0 and (info.bits == 0 or std.math.isPowerOfTwo(info.bits)),