Skip to content

Commit 44f70ca

Browse files
committed
update golden fixtures and apply formatting from on-task-done
Golden fixtures updated to use explicit `impl<T: Ord> Foo<T>` instead of compact `impl Foo<T: Ord>`. All 1283 tests pass. https://claude.ai/code/session_0185DQbZrR8XjistfKkPwAki
1 parent 8fea68f commit 44f70ca

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

wado-compiler/tests/format.fixtures.golden/all.clean.wado

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct MyArray<T> {
8686
}
8787

8888
/// Inherent impl: compact form with bounds inlined
89-
impl MyArray<T: Ord> {
89+
impl<T: Ord> MyArray<T> {
9090
/// Sort method
9191
fn sort(&mut self) {
9292
}

wado-compiler/tests/format.fixtures.golden/mess.clean.wado

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ struct MyArray<T> {
171171

172172
// Block comment /* */ before impl
173173
/* inherent impl with trait bound */
174-
impl MyArray<T: Ord> {
174+
impl<T: Ord> MyArray<T> {
175175
/* sort in ascending order */
176176
fn sort(&mut self) {
177177
}

wado-compiler/tests/format.fixtures.golden/no_prelude.clean.wado

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ variant Shape {
2626
}
2727

2828
/// Inherent impl: compact form with bounds inlined
29-
impl Array<T: Ord> {
29+
impl<T: Ord> Array<T> {
3030
/// Sort method
3131
fn sort(&mut self) {
3232
}
@@ -104,7 +104,7 @@ struct DnsError {
104104

105105
// Block comment /* */ before impl
106106
/* inherent impl with trait bound */
107-
impl Array<T: Ord> {
107+
impl<T: Ord> Array<T> {
108108
/* sort in ascending order */
109109
fn sort(&mut self) {
110110
}

wado-compiler/tests/format.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ fn assert_format_preserves_ast(source: &str) {
105105
diff_context.push_str(&format!("{marker} orig[{j}]: {}\n", orig_lines[j]));
106106
}
107107
if j < fmt_lines.len() {
108-
diff_context
109-
.push_str(&format!("{marker} fmt[{j}]: {}\n", fmt_lines[j]));
108+
diff_context.push_str(&format!("{marker} fmt[{j}]: {}\n", fmt_lines[j]));
110109
}
111110
}
112111
break;
@@ -1736,7 +1735,9 @@ fn test_roundtrip_ast_all_fixtures() {
17361735
break;
17371736
}
17381737
}
1739-
failures.push(format!("{filename}: AST changed by formatter ({diff_line})"));
1738+
failures.push(format!(
1739+
"{filename}: AST changed by formatter ({diff_line})"
1740+
));
17401741
}
17411742
}
17421743

0 commit comments

Comments
 (0)