Skip to content

Commit 23edace

Browse files
authored
Merge pull request #1595 from nnethercote/fix-cg_diff-regex
Fix `cg_diff --mod-filename` regex.
2 parents 9342393 + 89a4daf commit 23edace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/src/bin/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ fn cg_diff(cgout1: &Path, cgout2: &Path, path: &Path) -> anyhow::Result<()> {
314314
anyhow::bail!("`cg_diff` not installed.");
315315
}
316316
let output = Command::new("cg_diff")
317-
.arg("--mod-filename=s#/rustc/[^/]*/##")
317+
.arg(r"--mod-filename=s/\/rustc\/[^\/]*\///")
318318
.arg("--mod-funcname=s/[.]llvm[.].*//")
319319
.arg(cgout1)
320320
.arg(cgout2)

0 commit comments

Comments
 (0)