mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Fix a bunch of bugs found in fuzzing
This commit is contained in:
parent
5cd38c969f
commit
f7a5f06e5b
217 changed files with 5745 additions and 994 deletions
|
@ -1161,9 +1161,7 @@ fn parse_stmt_alias_or_opaque<'a>(
|
|||
AliasOrOpaque::Alias => {
|
||||
let (_, signature, state) = alias_signature().parse(arena, state, min_indent)?;
|
||||
|
||||
// TODO: this code used to be broken and it dropped the spaces after the operator.
|
||||
// The formatter is not expecting this, so let's keep it as is for now.
|
||||
// let signature = signature.map(|v| v.maybe_before(arena, spaces_after_operator));
|
||||
let signature = signature.map(|v| v.maybe_before(arena, spaces_after_operator));
|
||||
|
||||
let header = TypeHeader {
|
||||
name: Loc::at(expr.region, name),
|
||||
|
@ -1182,9 +1180,7 @@ fn parse_stmt_alias_or_opaque<'a>(
|
|||
let (_, (signature, derived), state) =
|
||||
opaque_signature().parse(arena, state, indented_more)?;
|
||||
|
||||
// TODO: this code used to be broken and it dropped the spaces after the operator.
|
||||
// The formatter is not expecting this, so let's keep it as is for now.
|
||||
// let signature = signature.map(|v| v.maybe_before(arena, spaces_after_operator));
|
||||
let signature = signature.map(|v| v.maybe_before(arena, spaces_after_operator));
|
||||
|
||||
let header = TypeHeader {
|
||||
name: Loc::at(expr.region, name),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue