From d984ec8833258097a57420fee836c107983ba22b 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 | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.matchers/rust.json b/.matchers/rust.json index 9813de88..0afd73f1 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,24 @@ "column": 4 } ] + }, + { + "owner": "rust-panic", + "pattern": [ + { + "regexp": "^(thread '[^']+' panicked at '[^']+'?)", + "message": 1 + } + ] + }, + { + "owner": "rust-test-failure", + "pattern": [ + { + "regexp": "^(test \\w+ ... FAILED)", + "message": 1 + } + ] } ] }