aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/lib.rs
diff options
context:
space:
mode:
authorTomasKralCZ <[email protected]>2020-01-19 16:51:03 +0000
committerTomasKralCZ <[email protected]>2020-01-19 16:51:03 +0000
commit514df15d9e32e057ba23dda0d4f5c07e82e7ed23 (patch)
tree41e93f63182bae10a7325fc50220f67df79aaece /xtask/src/lib.rs
parentc3b9a19eb72ae9542272ae7a22ac3fb57c75daca (diff)
parent3a7724e44181ccd5c248589538bd82458b5a9407 (diff)
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer
Diffstat (limited to 'xtask/src/lib.rs')
-rw-r--r--xtask/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs
index 0a569cf5d..9b0afe8e0 100644
--- a/xtask/src/lib.rs
+++ b/xtask/src/lib.rs
@@ -53,6 +53,7 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> {
53 write!(rustfmt.stdin.take().unwrap(), "{}", text)?; 53 write!(rustfmt.stdin.take().unwrap(), "{}", text)?;
54 let output = rustfmt.wait_with_output()?; 54 let output = rustfmt.wait_with_output()?;
55 let stdout = String::from_utf8(output.stdout)?; 55 let stdout = String::from_utf8(output.stdout)?;
56 // TODO: update the preable: replace ra_tools with the relevant path
56 let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`"; 57 let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`";
57 Ok(format!("//! {}\n\n{}", preamble, stdout)) 58 Ok(format!("//! {}\n\n{}", preamble, stdout))
58} 59}