mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
parent
b77a7e29a5
commit
fd394ff424
4 changed files with 32 additions and 35 deletions
|
@ -102,7 +102,7 @@ r#####"
|
|||
|
||||
buf.push_str(&test)
|
||||
}
|
||||
let buf = codegen::reformat(buf)?;
|
||||
let buf = crate::reformat(buf)?;
|
||||
codegen::update(&project_root().join(codegen::ASSISTS_TESTS), &buf, mode)
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ fn generate_ast(grammar: AstSrc<'_>) -> Result<String> {
|
|||
#(#enums)*
|
||||
};
|
||||
|
||||
let pretty = codegen::reformat(ast)?;
|
||||
let pretty = crate::reformat(ast)?;
|
||||
Ok(pretty)
|
||||
}
|
||||
|
||||
|
@ -265,7 +265,7 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> Result<String> {
|
|||
}
|
||||
};
|
||||
|
||||
codegen::reformat(ast)
|
||||
crate::reformat(ast)
|
||||
}
|
||||
|
||||
fn to_upper_snake_case(s: &str) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue