Skip to content

Commit 6d6bfeb

Browse files
authored
Merge branch 'main' into nils/bytecode-interp
2 parents 5b00c26 + 65645b0 commit 6d6bfeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zirgen/bootstrap/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ fn get_bazel_bin() -> PathBuf {
159159
}
160160

161161
fn strip_locations_and_whitespace(text: &str) -> Result<String> {
162-
// replace everything that might be a line number with '*'
163-
let re = Regex::new(":[0-9]+")?;
162+
// replace everything that might be a line number or a copyright date with '*'
163+
let re = Regex::new("(:[0-9]+)|(Copyright [0-9]+ RISC)")?;
164164
let stripped = re.replace_all(text, "*");
165165

166166
// Remove anything that might be changed by reformatting

0 commit comments

Comments
 (0)