We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c75044f + 347575a commit b6dc227Copy full SHA for b6dc227
src/tools/error_index_generator/build.rs
@@ -13,7 +13,6 @@ fn main() {
13
14
println!("cargo:rerun-if-changed={}", error_codes_path);
15
let file = fs::read_to_string(error_codes_path).unwrap()
16
- .replace("crate::register_diagnostics!", "register_diagnostics!")
17
.replace(": include_str!(\"./error_codes/", ": include_str!(\"./");
18
let contents = format!("(|| {{\n{}\n}})()", file);
19
fs::write(&out_dir.join("all_error_codes.rs"), &contents).unwrap();
0 commit comments