about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/.github/rust.json
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-19 06:59:32 +0000
committerbors <bors@rust-lang.org>2024-02-19 06:59:32 +0000
commit010f029c905ffeb01ad88288b2cf50efe65b23ae (patch)
treecf3e5436c033a6b38daa21eb498b7f53d417936c /src/tools/rust-analyzer/.github/rust.json
parent90fccaad801a929fc482dbbeca0231aa197de7c7 (diff)
parente118c3e8af2ee5c0d20d21e8bf08c1a254a317fb (diff)
Auto merge of #3306 - rust-lang:rustup-2024-02-19, r=RalfJung
Automatic Rustup
Diffstat (limited to 'src/tools/rust-analyzer/.github/rust.json')
-rw-r--r--src/tools/rust-analyzer/.github/rust.json33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/.github/rust.json b/src/tools/rust-analyzer/.github/rust.json
new file mode 100644
index 00000000000..ddaa1b0824b
--- /dev/null
+++ b/src/tools/rust-analyzer/.github/rust.json
@@ -0,0 +1,33 @@
+{
+    "problemMatcher": [
+        {
+            "owner": "rustfmt",
+            "severity": "warning",
+            "pattern": [
+                {
+                    "regexp": "^(Diff in (.+)) at line (\\d+):$",
+                    "message": 1,
+                    "file": 2,
+                    "line": 3
+                }
+            ]
+        },
+        {
+            "owner": "clippy",
+            "pattern": [
+                {
+                    "regexp": "^(?:\\x1b\\[[\\d;]+m)*(warning|warn|error)(?:\\x1b\\[[\\d;]+m)*(\\[(.*)\\])?(?:\\x1b\\[[\\d;]+m)*:(?:\\x1b\\[[\\d;]+m)* ([^\\x1b]*)(?:\\x1b\\[[\\d;]+m)*$",
+                    "severity": 1,
+                    "message": 4,
+                    "code": 3
+                },
+                {
+                    "regexp": "^(?:\\x1b\\[[\\d;]+m)*\\s*(?:\\x1b\\[[\\d;]+m)*\\s*--> (?:\\x1b\\[[\\d;]+m)*(.*):(\\d*):(\\d*)(?:\\x1b\\[[\\d;]+m)*$",
+                    "file": 1,
+                    "line": 2,
+                    "column": 3
+                }
+            ]
+        }
+    ]
+}