mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 09:07:21 +00:00
PNC for Patterns, stabilize formatting
This commit is contained in:
parent
bac165fd99
commit
3b0db07fa1
78 changed files with 789 additions and 332 deletions
|
@ -190,7 +190,7 @@ pub enum FormatProblem {
|
|||
|
||||
pub fn format_src(arena: &Bump, src: &str, flags: MigrationFlags) -> Result<String, FormatProblem> {
|
||||
let ast = arena.alloc(parse_all(arena, src).unwrap_or_else(|e| {
|
||||
user_error!("Unexpected parse failure when parsing this formatting:\n\n{:?}\n\nParse error was:\n\n{:?}\n\n", src, e)
|
||||
user_error!("Unexpected parse failure when parsing this formatting:\n\n{src}\n\nParse error was:\n\n{:#?}\n\n", e)
|
||||
}));
|
||||
let mut buf = Buf::new_in(arena, flags);
|
||||
fmt_all(&mut buf, ast);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue