mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
use new quote-generated ast
This commit is contained in:
parent
8cefdb5527
commit
39f50e7bd7
3 changed files with 1410 additions and 1290 deletions
|
@ -154,7 +154,8 @@ fn reformat(text: impl std::fmt::Display) -> Result<String> {
|
|||
write!(rustfmt.stdin.take().unwrap(), "{}", text)?;
|
||||
let output = rustfmt.wait_with_output()?;
|
||||
let stdout = String::from_utf8(output.stdout)?;
|
||||
Ok(stdout)
|
||||
let preamble = "Generated file, do not edit by hand, see `crate/ra_tools/src/codegen`";
|
||||
Ok(format!("// {}\n\n{}", preamble, stdout))
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue