Merge branch 'trunk' into platform

This commit is contained in:
Richard Feldman 2020-10-18 23:59:44 -04:00 committed by GitHub
commit db2d99f56d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 402 additions and 138 deletions

View file

@ -2244,8 +2244,12 @@ fn add_def_to_module<'a>(
return_type: ret_var,
arguments: loc_args,
loc_body,
captured_symbols,
..
} => {
// this is a top-level definition, it should not capture anything
debug_assert!(captured_symbols.is_empty());
// If this is an exposed symbol, we need to
// register it as such. Otherwise, since it
// never gets called by Roc code, it will never