mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Simplify xtask
lib/bin/test separation isn't really needed.
This commit is contained in:
parent
c17f2bf2a2
commit
d9dcfd81c5
17 changed files with 167 additions and 180 deletions
|
@ -7,12 +7,12 @@ use crate::{
|
|||
project_root, rust_files_in, Result,
|
||||
};
|
||||
|
||||
pub fn generate_assists_tests(mode: Mode) -> Result<()> {
|
||||
pub(crate) fn generate_assists_tests(mode: Mode) -> Result<()> {
|
||||
let assists = Assist::collect()?;
|
||||
generate_tests(&assists, mode)
|
||||
}
|
||||
|
||||
pub fn generate_assists_docs(mode: Mode) -> Result<()> {
|
||||
pub(crate) fn generate_assists_docs(mode: Mode) -> Result<()> {
|
||||
let assists = Assist::collect()?;
|
||||
let contents = assists.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n");
|
||||
let contents = format!("//{}\n{}\n", PREAMBLE, contents.trim());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue