Skip to content

Commit ffd35ca

Browse files
cknittclaude
andcommitted
Format the unused-argument fixture as master's printer does
Master's printer now puts a blank line around multi-line items (#8961), so the format check failed on this fixture after the rebase. Its error snapshot moves by one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kbf3gLpf7RN1MiRcubPgRn Signed-off-by: Christoph Knittel <ck@cca.io>
1 parent afec64d commit ffd35ca

2 files changed

Lines changed: 18 additions & 17 deletions

File tree

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11

22
Warning number 20
3-
/.../fixtures/unused_argument_object_method.res:28:51
3+
/.../fixtures/unused_argument_object_method.res:29:51
44

5-
26 │
6-
27 │ // A function that never returns ignores its arguments: warning 20.
7-
28 │ let ignored = () => throw(Failure("unreachable"))(1)
8-
29 │
9-
30 │ // A field read that cannot return ignores its arguments: warning 20.
5+
27 │
6+
28 │ // A function that never returns ignores its arguments: warning 20.
7+
29 │ let ignored = () => throw(Failure("unreachable"))(1)
8+
30 │
9+
31 │ // A field read that cannot return ignores its arguments: warning 20.
1010

1111
this argument will not be used by the function.
1212

1313

1414
Warning number 20
15-
/.../fixtures/unused_argument_object_method.res:31:62-77
15+
/.../fixtures/unused_argument_object_method.res:32:62-77
1616

17-
29 │
18-
30 │ // A field read that cannot return ignores its arguments: warning 20.
19-
31 │ let fromLiteral = () => ({"m": throw(Failure("boom"))})["m"](Console.lo
17+
30 │
18+
31 │ // A field read that cannot return ignores its arguments: warning 20.
19+
32 │ let fromLiteral = () => ({"m": throw(Failure("boom"))})["m"](Console.lo
2020
│ g("a"))
21-
32 │ let fromThrow = () => throw(Failure("boom"))["m"](Console.log("b"))
22-
33 │
21+
33 │ let fromThrow = () => throw(Failure("boom"))["m"](Console.log("b"))
22+
34 │
2323

2424
this argument will not be used by the function.
2525

2626

2727
Warning number 20
28-
/.../fixtures/unused_argument_object_method.res:32:51-66
28+
/.../fixtures/unused_argument_object_method.res:33:51-66
2929

30-
30 │ // A field read that cannot return ignores its arguments: warning 20.
31-
31 │ let fromLiteral = () => ({"m": throw(Failure("boom"))})["m"](Console.lo
30+
31 │ // A field read that cannot return ignores its arguments: warning 20.
31+
32 │ let fromLiteral = () => ({"m": throw(Failure("boom"))})["m"](Console.lo
3232
│ g("a"))
33-
32 │ let fromThrow = () => throw(Failure("boom"))["m"](Console.log("b"))
34-
33 │
33+
33 │ let fromThrow = () => throw(Failure("boom"))["m"](Console.log("b"))
34+
34 │
3535

3636
this argument will not be used by the function.

‎tests/build_tests/super_errors/fixtures/unused_argument_object_method.res‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ let nested = clipboardData("e")["m"](clipboardData("f")["n"]("y"))
1717
let retained = clipboardData("e")
1818
let first = retained["m"]
1919
let second = retained["m"]("used")
20+
2021
let readElsewhere = () => {
2122
let o = clipboardData("e")
2223
let get = () => o["m"]

0 commit comments

Comments
 (0)