Skip to content

Commit 647c52c

Browse files
committed
fix(builtins): keep callable metadata builtins internal
1 parent 5dc7b11 commit 647c52c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/builtins/runtime/core.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,14 @@ mod tests {
910910
assert_eq!(BuiltinFunction::from_call_index(index), Some(builtin));
911911
}
912912
assert_eq!(BUILTIN_CALL_COUNT, 89);
913+
for name in ["__bind_callable", "__detach_local"] {
914+
assert!(
915+
!crate::builtins::language_builtin_specs()
916+
.iter()
917+
.any(|spec| spec.name == name),
918+
"internal callable metadata operation must not be language-visible: {name}"
919+
);
920+
}
913921
for alias in BUILTIN_CALL_BASE + 89..=BUILTIN_CALL_BASE + 92 {
914922
assert_eq!(BuiltinFunction::from_call_index(alias), None);
915923
}

0 commit comments

Comments
 (0)