mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
prevent clone for all function signatures
This commit is contained in:
parent
ceb69ace4d
commit
e8bf5fa378
2 changed files with 36 additions and 6 deletions
|
@ -529,6 +529,18 @@ impl Constraints {
|
|||
|
||||
Constraint::Store(type_index, variable, string_index, line_number)
|
||||
}
|
||||
|
||||
pub fn store_index(
|
||||
&mut self,
|
||||
type_index: EitherIndex<Type, Variable>,
|
||||
variable: Variable,
|
||||
filename: &'static str,
|
||||
line_number: u32,
|
||||
) -> Constraint {
|
||||
let string_index = Index::push_new(&mut self.strings, filename);
|
||||
|
||||
Constraint::Store(type_index, variable, string_index, line_number)
|
||||
}
|
||||
}
|
||||
|
||||
roc_error_macros::assert_sizeof_default!(Constraint, 3 * 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue