Skip to content

Commit 1c4657d

Browse files
committed
compiletest: un-escape new-line in normalize replacement string
1 parent 85e4765 commit 1c4657d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/header.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,8 @@ fn parse_normalize_rule(header: &str) -> Option<(String, String)> {
11351135
.captures(header)?;
11361136
let regex = captures["regex"].to_owned();
11371137
let replacement = captures["replacement"].to_owned();
1138+
// FIXME: Support escaped new-line in strings.
1139+
let replacement = replacement.replace("\\n", "\n");
11381140
Some((regex, replacement))
11391141
}
11401142

0 commit comments

Comments
 (0)