aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/codegen/gen_diagnostic_docs.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-01-21 13:37:08 +0000
committerAleksey Kladov <[email protected]>2021-01-21 13:37:46 +0000
commitfeb252138d561075116119d9aa84a21b7244e471 (patch)
tree308cae3f62ce3608385265ce6d885c2e90cffab6 /xtask/src/codegen/gen_diagnostic_docs.rs
parent64a92e2328ed5441fb99344d5f7c410f371414a2 (diff)
Fix mega bug
https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/Manual.20content.20is.20duplicated
Diffstat (limited to 'xtask/src/codegen/gen_diagnostic_docs.rs')
-rw-r--r--xtask/src/codegen/gen_diagnostic_docs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/src/codegen/gen_diagnostic_docs.rs b/xtask/src/codegen/gen_diagnostic_docs.rs
index 00aaea5b7..7c14d4a07 100644
--- a/xtask/src/codegen/gen_diagnostic_docs.rs
+++ b/xtask/src/codegen/gen_diagnostic_docs.rs
@@ -27,7 +27,7 @@ struct Diagnostic {
27impl Diagnostic { 27impl Diagnostic {
28 fn collect() -> Result<Vec<Diagnostic>> { 28 fn collect() -> Result<Vec<Diagnostic>> {
29 let mut res = Vec::new(); 29 let mut res = Vec::new();
30 for path in rust_files(&project_root()) { 30 for path in rust_files() {
31 collect_file(&mut res, path)?; 31 collect_file(&mut res, path)?;
32 } 32 }
33 res.sort_by(|lhs, rhs| lhs.id.cmp(&rhs.id)); 33 res.sort_by(|lhs, rhs| lhs.id.cmp(&rhs.id));