about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-11-25 15:05:23 +0100
committerGitHub <noreply@github.com>2019-11-25 15:05:23 +0100
commitb6dc227299ed2d4e8d22826c432f17d3a3d18346 (patch)
tree10a3bb73c738fd3483ad392e9659f99464d94af5 /src/tools
parentc75044f4633413780ba714dcea2bd6e7a2eca9b1 (diff)
parent347575a8253ba012aa00763a898d447264e1d631 (diff)
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
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/error_index_generator/build.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tools/error_index_generator/build.rs b/src/tools/error_index_generator/build.rs
index b04aff4939b..b6e7ede17e7 100644
--- a/src/tools/error_index_generator/build.rs
+++ b/src/tools/error_index_generator/build.rs
@@ -13,7 +13,6 @@ fn main() {
 
     println!("cargo:rerun-if-changed={}", error_codes_path);
     let file = fs::read_to_string(error_codes_path).unwrap()
-                  .replace("crate::register_diagnostics!", "register_diagnostics!")
                   .replace(": include_str!(\"./error_codes/", ": include_str!(\"./");
     let contents = format!("(|| {{\n{}\n}})()", file);
     fs::write(&out_dir.join("all_error_codes.rs"), &contents).unwrap();