fn verify_msrv<R: Output, C: Check>(
    config: &Config,
    reporter: &R,
    release_index: &ReleaseIndex,
    rust_version: RustVersion,
    runner: &C,
) -> TResult<Outcome> {
    reporter.mode(ModeIntent::Verify);

    let bare_version = rust_version.version();
    let version =
        bare_version.try_to_semver(release_index.releases().iter().map(Release::version))?;

    let toolchain = ToolchainSpec::new(version, config.target());
    let outcome = runner.check(config, &toolchain)?;

    if outcome.is_success() {
        Ok(outcome)
    } else {
        Err(CargoMSRVError::SubCommandVerify(Error::VerifyFailed(
            VerifyFailed {
                rust_version: version.clone(),
                source: rust_version.into_source(),
            },
        )))
    }
}
/// Verify whether a Cargo project is compatible with a `rustup run` command,
/// for the (given or specified) `rust_version`.
Verify whether a Cargo project is compatible with a `rustup run` command,
for the (given or specified) `rust_version`.
Verify whether a Cargo project is compatible with a ` rustup run ` command for the ( given or specified ) ` rust_version ` .
fn verify_msrv<R: Output, C: Check>(
    config: &Config,
    reporter: &R,
    release_index: &ReleaseIndex,
    rust_version: RustVersion,
    runner: &C,
) -> TResult<Outcome> {
    reporter.mode(ModeIntent::Verify);
    let bare_version = rust_version.version();
    let version =
        bare_version.try_to_semver(release_index.releases().iter().map(Release::version))?;
    let toolchain = ToolchainSpec::new(version, config.target());
    let outcome = runner.check(config, &toolchain)?;
    if outcome.is_success() {
        Ok(outcome)
    } else {
        Err(CargoMSRVError::SubCommandVerify(Error::VerifyFailed(
            VerifyFailed {
                rust_version: version.clone(),
                source: rust_version.into_source(),
            },
        )))
    }
}
fn verify_msrv < R : Output , C : Check > ( config : & Config , reporter : & R , release_index : & ReleaseIndex , rust_version : RustVersion , runner : & C , ) -> TResult < Outcome > { reporter . mode ( ModeIntent :: Verify ) ; let bare_version = rust_version . version ( ) ; let version = bare_version . try_to_semver ( release_index . releases ( ) . iter ( ) . map ( Release :: version ) ) ? ; let toolchain = ToolchainSpec :: new ( version , config . target ( ) ) ; let outcome = runner . check ( config , & toolchain ) ? ; if outcome . is_success ( ) { Ok ( outcome ) } else { Err ( CargoMSRVError :: SubCommandVerify ( Error :: VerifyFailed ( VerifyFailed { rust_version : version . clone ( ) , source : rust_version . into_source ( ) , } , ) ) ) } }
Verify whether a Cargo project is compatible with a `rustup run` command,
for the (given or specified) `rust_version`.
Verify whether a Cargo project is compatible with a ` rustup run ` command for the ( given or specified ) ` rust_version ` .
config
&Config
reporter
&R
release_index
&ReleaseIndex
rust_version
RustVersion
runner
&C
config
&Config
reporter
&R
release_index
&ReleaseIndex
rust_version
RustVersion
runner
&C