A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'diag')
-rw-r--r--diag405
1 files changed, 405 insertions, 0 deletions
diff --git a/diag b/diag
new file mode 100644
index 0000000..0c1fbee
--- /dev/null
+++ b/diag
@@ -0,0 +1,405 @@
+[
+ {
+ "range": {
+ "start": {
+ "line": 69,
+ "character": 39
+ },
+ "end": {
+ "line": 69,
+ "character": 44
+ }
+ },
+ "severity": 2,
+ "code": "unused_imports",
+ "source": "rustc",
+ "message": "unused import: `color`\n`#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 69,
+ "character": 37
+ },
+ "end": {
+ "line": 69,
+ "character": 44
+ }
+ }
+ },
+ "message": "remove the unused import"
+ }
+ ],
+ "tags": [
+ 1
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused import: `color`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:70:40\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m70\u001b[0m \u001b[1m\u001b[94m|\u001b[0m use crate::text::{Diff, TextArea, col, color, is_word};\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1272,
+ "character": 6
+ },
+ "end": {
+ "line": 1272,
+ "character": 7
+ }
+ },
+ "severity": 2,
+ "code": "unused_parens",
+ "source": "rustc",
+ "message": "unnecessary parentheses around type\n`#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1272,
+ "character": 6
+ },
+ "end": {
+ "line": 1272,
+ "character": 7
+ }
+ }
+ },
+ "message": "remove these parentheses"
+ }
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unnecessary parentheses around type\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1273:7\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(((usize, usize)) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default\n\u001b[1m\u001b[96mhelp\u001b[0m: remove these parentheses\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[91m- \u001b[0m C(\u001b[91m(\u001b[0m(usize, usize)\u001b[91m)\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[92m+ \u001b[0m C((usize, usize) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1272,
+ "character": 21
+ },
+ "end": {
+ "line": 1272,
+ "character": 22
+ }
+ },
+ "severity": 2,
+ "code": "unused_parens",
+ "source": "rustc",
+ "message": "unnecessary parentheses around type\n`#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1272,
+ "character": 6
+ },
+ "end": {
+ "line": 1272,
+ "character": 7
+ }
+ }
+ },
+ "message": "remove these parentheses"
+ }
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unnecessary parentheses around type\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1273:7\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(((usize, usize)) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default\n\u001b[1m\u001b[96mhelp\u001b[0m: remove these parentheses\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[91m- \u001b[0m C(\u001b[91m(\u001b[0m(usize, usize)\u001b[91m)\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[92m+ \u001b[0m C((usize, usize) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1282,
+ "character": 10
+ },
+ "end": {
+ "line": 1282,
+ "character": 11
+ }
+ },
+ "severity": 2,
+ "code": "unused_variables",
+ "source": "rustc",
+ "message": "unused variable: `x`",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1282,
+ "character": 10
+ },
+ "end": {
+ "line": 1282,
+ "character": 11
+ }
+ }
+ },
+ "message": "if this is intentional, prefix it with an underscore: `_x`"
+ }
+ ],
+ "tags": [
+ 1
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `x`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1283:11\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1283\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Selection(x) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_x`\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 8
+ },
+ "end": {
+ "line": 1310,
+ "character": 9
+ }
+ },
+ "severity": 2,
+ "code": "unused_variables",
+ "source": "rustc",
+ "message": "unused variable: `x`",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 8
+ },
+ "end": {
+ "line": 1310,
+ "character": 9
+ }
+ }
+ },
+ "message": "if this is intentional, prefix it with an underscore: `_x`"
+ }
+ ],
+ "tags": [
+ 1
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `x`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1311:9\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Search((x, y, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m \u001b[1m\u001b[33mhelp: if this is intentional, prefix it with an underscore: `_x`\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 11
+ },
+ "end": {
+ "line": 1310,
+ "character": 12
+ }
+ },
+ "severity": 2,
+ "code": "unused_variables",
+ "source": "rustc",
+ "message": "unused variable: `y`",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 11
+ },
+ "end": {
+ "line": 1310,
+ "character": 12
+ }
+ }
+ },
+ "message": "you might have meant to pattern match on the similarly named constant `N`: `com::N`"
+ },
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 11
+ },
+ "end": {
+ "line": 1310,
+ "character": 12
+ }
+ }
+ },
+ "message": "if this is intentional, prefix it with an underscore: `_y`"
+ }
+ ],
+ "tags": [
+ 1
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `y`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1311:12\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Search((x, y, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: you might have meant to pattern match on the similarly named constant `N`\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[91m- \u001b[0mSearch((x, \u001b[91my\u001b[0m, m)) => {\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[92m+ \u001b[0mSearch((x, \u001b[92mcom::N\u001b[0m, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: if this is intentional, prefix it with an underscore\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[1m\u001b[94m| \u001b[0mSearch((x, \u001b[92m_\u001b[0my, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 14
+ },
+ "end": {
+ "line": 1310,
+ "character": 15
+ }
+ },
+ "severity": 2,
+ "code": "unused_variables",
+ "source": "rustc",
+ "message": "unused variable: `m`",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 14
+ },
+ "end": {
+ "line": 1310,
+ "character": 15
+ }
+ }
+ },
+ "message": "you might have meant to pattern match on the similarly named constant `N`: `com::N`"
+ },
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1310,
+ "character": 14
+ },
+ "end": {
+ "line": 1310,
+ "character": 15
+ }
+ }
+ },
+ "message": "if this is intentional, prefix it with an underscore: `_m`"
+ }
+ ],
+ "tags": [
+ 1
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: unused variable: `m`\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1311:15\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[1m\u001b[94m|\u001b[0m Search((x, y, m)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: you might have meant to pattern match on the similarly named constant `N`\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[91m- \u001b[0mSearch((x, y, \u001b[91mm\u001b[0m)) => {\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[92m+ \u001b[0mSearch((x, y, \u001b[92mcom::N\u001b[0m)) => {\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[96mhelp\u001b[0m: if this is intentional, prefix it with an underscore\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1311\u001b[0m \u001b[1m\u001b[94m| \u001b[0mSearch((x, y, \u001b[92m_\u001b[0mm)) => {\n \u001b[1m\u001b[94m|\u001b[0m \u001b[92m+\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1272,
+ "character": 6
+ },
+ "end": {
+ "line": 1272,
+ "character": 22
+ }
+ },
+ "severity": 2,
+ "code": "dead_code",
+ "source": "rustc",
+ "message": "field `0` is never read\n`Action` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n`#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default",
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1312,
+ "character": 4
+ },
+ "end": {
+ "line": 1312,
+ "character": 5
+ }
+ }
+ },
+ "message": "field in this variant"
+ },
+ {
+ "location": {
+ "uri": "file:///home/os/gracilaria/src/main.rs",
+ "range": {
+ "start": {
+ "line": 1272,
+ "character": 6
+ },
+ "end": {
+ "line": 1272,
+ "character": 22
+ }
+ }
+ },
+ "message": "consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field: `()`"
+ }
+ ],
+ "tags": [
+ 1
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: field `0` is never read\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1273:7\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(((usize, usize)) => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[1m\u001b[94m...\u001b[0m\n\u001b[1m\u001b[94m1313\u001b[0m \u001b[1m\u001b[94m|\u001b[0m C(_) => Search((x, y, m)),\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[94m-\u001b[0m \u001b[1m\u001b[94mfield in this variant\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `Action` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default\n\u001b[1m\u001b[96mhelp\u001b[0m: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[91m- \u001b[0m C(\u001b[91m((usize, usize))\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n\u001b[1m\u001b[94m1273\u001b[0m \u001b[92m+ \u001b[0m C(\u001b[92m()\u001b[0m => .. if unsafe { CLICKING }) => Selection(0..0) [StartSelection],\n \u001b[1m\u001b[94m|\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1422,
+ "character": 3
+ },
+ "end": {
+ "line": 1422,
+ "character": 15
+ }
+ },
+ "severity": 2,
+ "code": "dead_code",
+ "source": "rustc",
+ "message": "function `frunctinator` is never used",
+ "tags": [
+ 1
+ ],
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: function `frunctinator` is never used\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1423:4\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1423\u001b[0m \u001b[1m\u001b[94m|\u001b[0m fn frunctinator(\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^^^\u001b[0m\n\n"
+ }
+ },
+ {
+ "range": {
+ "start": {
+ "line": 1427,
+ "character": 31
+ },
+ "end": {
+ "line": 1427,
+ "character": 41
+ }
+ },
+ "severity": 2,
+ "code": "path_statements",
+ "source": "rustc",
+ "message": "path statement with no effect\n`#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default",
+ "data": {
+ "rendered": "\u001b[1m\u001b[33mwarning\u001b[0m\u001b[1m: path statement with no effect\u001b[0m\n \u001b[1m\u001b[94m--> \u001b[0msrc/main.rs:1428:32\n \u001b[1m\u001b[94m|\u001b[0m\n\u001b[1m\u001b[94m1428\u001b[0m \u001b[1m\u001b[94m|\u001b[0m lower::saturating::math! { parameter1 };\n \u001b[1m\u001b[94m|\u001b[0m \u001b[1m\u001b[33m^^^^^^^^^^\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default\n\n"
+ }
+ }
+] \ No newline at end of file