From 347575a8253ba012aa00763a898d447264e1d631 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 23 Nov 2019 22:07:52 +0100 Subject: Remove useless line for error index generation --- src/tools/error_index_generator/build.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/tools') 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(); -- cgit 1.4.1-3-g733a5 From 2e41ce99230ba104b4bb23c8df43764e95eebf18 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sun, 24 Nov 2019 16:09:55 +0300 Subject: tidy: Remove unused import --- src/tools/tidy/src/error_codes_check.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/tidy/src/error_codes_check.rs b/src/tools/tidy/src/error_codes_check.rs index 5364005840a..41c4b618e60 100644 --- a/src/tools/tidy/src/error_codes_check.rs +++ b/src/tools/tidy/src/error_codes_check.rs @@ -4,7 +4,6 @@ use std::collections::HashMap; use std::ffi::OsStr; use std::fs::read_to_string; -use std::io::Read; use std::path::Path; // A few of those error codes can't be tested but all the others can and *should* be tested! -- cgit 1.4.1-3-g733a5