Bug 1905797 - Account for the new format of diff lines in rustfmt nightly output. r=sylvestre

Differential Revision: https://phabricator.services.mozilla.com/D215450
This commit is contained in:
Mike Hommey 2024-07-02 07:40:21 +00:00
parent 32c4882063
commit dec8465865

View File

@ -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 = ""