diff options
Diffstat (limited to 'tvix/eval/src')
-rw-r--r-- | tvix/eval/src/value/attrs.rs | 1 | ||||
-rw-r--r-- | tvix/eval/src/value/list.rs | 1 | ||||
-rw-r--r-- | tvix/eval/src/value/string.rs | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs index 0ab4538a4d8c..2efeaad41306 100644 --- a/tvix/eval/src/value/attrs.rs +++ b/tvix/eval/src/value/attrs.rs @@ -67,6 +67,7 @@ impl AttrsRep { } } +#[repr(transparent)] #[derive(Clone, Debug)] pub struct NixAttrs(AttrsRep); diff --git a/tvix/eval/src/value/list.rs b/tvix/eval/src/value/list.rs index 546d2c88a55a..fab85a73ec2f 100644 --- a/tvix/eval/src/value/list.rs +++ b/tvix/eval/src/value/list.rs @@ -3,6 +3,7 @@ use std::fmt::Display; use super::Value; +#[repr(transparent)] #[derive(Clone, Debug, PartialEq)] pub struct NixList(Vec<Value>); diff --git a/tvix/eval/src/value/string.rs b/tvix/eval/src/value/string.rs index 626cf398f2dc..122a82e04802 100644 --- a/tvix/eval/src/value/string.rs +++ b/tvix/eval/src/value/string.rs @@ -11,6 +11,7 @@ enum StringRepr { Heap(String), } +#[repr(transparent)] #[derive(Clone, Debug)] pub struct NixString(StringRepr); |