turn toplevel expects into inline expects

This commit is contained in:
Folkert 2022-07-10 19:17:51 +02:00
parent 3b60acb938
commit 5df489ba23
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 60 additions and 3 deletions

View file

@ -4190,7 +4190,7 @@ pub fn build_procedures_expose_expects<'a, 'ctx, 'env>(
let expects: Vec<_> = procedures
.keys()
.filter_map(|(symbol, proc_layout)| {
if proc_layout.arguments.is_empty() && proc_layout.result == Layout::bool() {
if proc_layout.arguments.is_empty() && proc_layout.result == Layout::UNIT {
Some(*symbol)
} else {
None
@ -4210,7 +4210,7 @@ pub fn build_procedures_expose_expects<'a, 'ctx, 'env>(
let top_level = ProcLayout {
arguments: &[],
result: Layout::bool(),
result: Layout::UNIT,
captures_niche,
};