mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
consider strings
This commit is contained in:
parent
9746e9f240
commit
d093f056b7
1 changed files with 2 additions and 0 deletions
|
@ -219,6 +219,8 @@ fn get_inplace_from_layout(layout: &Layout<'_>) -> InPlace {
|
|||
MemoryMode::Unique => InPlace::InPlace,
|
||||
MemoryMode::Refcounted => InPlace::Clone,
|
||||
},
|
||||
Layout::Builtin(Builtin::EmptyStr) => InPlace::InPlace,
|
||||
Layout::Builtin(Builtin::Str) => InPlace::Clone,
|
||||
_ => unreachable!("Layout {:?} does not have an inplace", layout),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue