Skip to content

Commit b6dc227

Browse files
authored
Rollup merge of #66678 - GuillaumeGomez:remove-useless-error-index-line, r=Dylan-DPC
Remove useless line for error index generation As you can see here: https://github.com/rust-lang/rust/blob/master/src/librustc_error_codes/error_codes.rs#L10, this replacement is now completely useless. r? @Dylan-DPC
2 parents c75044f + 347575a commit b6dc227

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/tools/error_index_generator/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ fn main() {
1313

1414
println!("cargo:rerun-if-changed={}", error_codes_path);
1515
let file = fs::read_to_string(error_codes_path).unwrap()
16-
.replace("crate::register_diagnostics!", "register_diagnostics!")
1716
.replace(": include_str!(\"./error_codes/", ": include_str!(\"./");
1817
let contents = format!("(|| {{\n{}\n}})()", file);
1918
fs::write(&out_dir.join("all_error_codes.rs"), &contents).unwrap();

0 commit comments

Comments
 (0)