From fd2aa4a2d13bccd68d6b69d17405217879533b38 Mon Sep 17 00:00:00 2001 From: Teoh Han Hui Date: Thu, 13 Jan 2022 19:24:16 +0800 Subject: [PATCH] Add problem matchers for panic and test failure --- .matchers/rust.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.matchers/rust.json b/.matchers/rust.json index 9813de8..886be40 100644 --- a/.matchers/rust.json +++ b/.matchers/rust.json @@ -1,7 +1,7 @@ { "problemMatcher": [ { - "owner": "rust", + "owner": "rust-diagnostic", "pattern": [ { "regexp": "^(warning|warn|error)(\\[(.*)\\])?: (.*)$", @@ -16,6 +16,27 @@ "column": 4 } ] + }, + { + "owner": "rust-panic", + "pattern": [ + { + "regexp": "^(thread\\s+'[^']+'\\s+panicked\\s+at\\s+'[^']+(?:'|$))(?:,\\s+([^/\\\\][^:]+):(\\d+):(\\d+))?", + "file": 2, + "line": 3, + "column": 4, + "message": 1 + } + ] + }, + { + "owner": "rust-test-failure", + "pattern": [ + { + "regexp": "^(test\\s+\\w+\\s+\\.{3}\\s+FAILED)", + "message": 1 + } + ] } ] }