fn run(self, builder: &Builder<'_>) {
        let mut cmd = builder.tool_cmd(Tool::Tidy);
        cmd.arg(builder.src.join("src"));
        cmd.arg(&builder.initial_cargo);
        if builder.is_verbose() {
            cmd.arg("--verbose");
        }

        builder.info("tidy check");
        try_run(builder, &mut cmd);

        if builder.config.channel == "dev" || builder.config.channel == "nightly" {
            builder.info("fmt check");
            crate::format::format(&builder.build, !builder.config.cmd.bless());
        }
    }
/// Runs the `tidy` tool.
///
/// This tool in `src/tools` checks up on various bits and pieces of style and
/// otherwise just implements a few lint-like checks that are specific to the
/// compiler itself.
///
/// Once tidy passes, this step also runs `fmt --check` if tests are being run
/// for the `dev` or `nightly` channels.
Runs the `tidy` tool.
This tool in `src/tools` checks up on various bits and pieces of style and
otherwise just implements a few lint-like checks that are specific to the
compiler itself.


Runs the ` tidy ` tool . This tool in ` src / tools ` checks up on various bits and pieces of style and otherwise just implements a few lint - like checks that are specific to the compiler itself .
fn run(self, builder: &Builder<'_>) {
        let mut cmd = builder.tool_cmd(Tool::Tidy);
        cmd.arg(builder.src.join("src"));
        cmd.arg(&builder.initial_cargo);
        if builder.is_verbose() {
            cmd.arg("--verbose");
        }
        builder.info("tidy check");
        try_run(builder, &mut cmd);
        if builder.config.channel == "dev" || builder.config.channel == "nightly" {
            builder.info("fmt check");
            crate::format::format(&builder.build, !builder.config.cmd.bless());
        }
    }
fn run ( self , builder : & Builder < ' _ > ) { let mut cmd = builder . tool_cmd ( Tool :: Tidy ) ; cmd . arg ( builder . src . join ( " " ) ) ; cmd . arg ( & builder . initial_cargo ) ; if builder . is_verbose ( ) { cmd . arg ( " " ) ; } builder . info ( " " ) ; try_run ( builder , & mut cmd ) ; if builder . config . channel == " " || builder . config . channel == " " { builder . info ( " " ) ; crate :: format :: format ( & builder . build , ! builder . config . cmd . bless ( ) ) ; } }
Runs the `tidy` tool.
Runs the ` tidy ` tool .
self
builder
&Builder<'_>
self
builder
&Builder<'_>