From dec8465865b9a781172d37bf9d762e7cda35cf60 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 2 Jul 2024 07:40:21 +0000 Subject: [PATCH] Bug 1905797 - Account for the new format of diff lines in rustfmt nightly output. r=sylvestre Differential Revision: https://phabricator.services.mozilla.com/D215450 --- tools/lint/rust/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lint/rust/__init__.py b/tools/lint/rust/__init__.py index 148aeeb648a1..7ca07922102a 100644 --- a/tools/lint/rust/__init__.py +++ b/tools/lint/rust/__init__.py @@ -41,7 +41,7 @@ Try to update it: def parse_issues(config, output, paths): RustfmtDiff = namedtuple("RustfmtDiff", ["file", "line", "diff"]) issues = [] - diff_line = re.compile("^Diff in (.*) at line ([0-9]*):") + diff_line = re.compile("^Diff in (.*)(?: at line |:)([0-9]*):") file = "" line_no = 0 diff = ""