summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.json')
-rw-r--r--src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.json68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.json b/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.json
new file mode 100644
index 000000000..c32a71290
--- /dev/null
+++ b/src/tools/cargo/crates/rustfix/tests/everything/handle-insert-only.json
@@ -0,0 +1,68 @@
+{
+ "message": "expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`",
+ "code": null,
+ "level": "error",
+ "spans": [
+ {
+ "file_name": "./tests/everything/handle-insert-only.rs",
+ "byte_start": 163,
+ "byte_end": 165,
+ "line_start": 6,
+ "line_end": 6,
+ "column_start": 18,
+ "column_end": 20,
+ "is_primary": true,
+ "text": [
+ {
+ "text": " &Some(x) => x,",
+ "highlight_start": 18,
+ "highlight_end": 20
+ }
+ ],
+ "label": "expected one of `,`, `.`, `?`, `}`, or an operator here",
+ "suggested_replacement": null,
+ "expansion": null
+ }
+ ],
+ "children": [
+ {
+ "message": "missing a comma here to end this `match` arm",
+ "code": null,
+ "level": "help",
+ "spans": [
+ {
+ "file_name": "./tests/everything/handle-insert-only.rs",
+ "byte_start": 145,
+ "byte_end": 145,
+ "line_start": 5,
+ "line_end": 5,
+ "column_start": 19,
+ "column_end": 19,
+ "is_primary": true,
+ "text": [
+ {
+ "text": " &None => 1",
+ "highlight_start": 19,
+ "highlight_end": 19
+ }
+ ],
+ "label": null,
+ "suggested_replacement": ",",
+ "suggestion_applicability": "Unspecified",
+ "expansion": null
+ }
+ ],
+ "children": [],
+ "rendered": null
+ }
+ ],
+ "rendered": "error: expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`\n --> ./tests/everything/handle-insert-only.rs:6:18\n |\n5 | &None => 1\n | - help: missing a comma here to end this `match` arm\n6 | &Some(x) => x,\n | ^^ expected one of `,`, `.`, `?`, `}`, or an operator here\n\n"
+}
+{
+ "message": "aborting due to previous error",
+ "code": null,
+ "level": "error",
+ "spans": [],
+ "children": [],
+ "rendered": "error: aborting due to previous error\n\n"
+}