fn assert_all_components_present(&self) -> Result<(), Error> {
        if self.config.channel != Channel::Nightly {
            return Ok(());
        }

        let mut components = Vec::new();
        for entry in self.dl_dir().read_dir()? {
            let name = entry?.file_name().into_string().unwrap();
            if name.contains("x86_64-unknown-linux-gnu") {
                components.push(name);
            }
        }

        assert!(components.iter().any(|s| s.starts_with("rustc-")));
        assert!(components.iter().any(|s| s.starts_with("rust-std-")));
        assert!(components.iter().any(|s| s.starts_with("cargo-")));
        // For now, produce nightlies even if these are missing.
        // assert!(components.iter().any(|s| s.starts_with("rustfmt-")));
        // assert!(components.iter().any(|s| s.starts_with("rls-")));
        // assert!(components.iter().any(|s| s.starts_with("clippy-")));

        Ok(())
    }
/// Make sure this release comes with a minimum of components.
///
/// Note that we already don't merge PRs in rust-lang/rust that don't
/// build cargo, so this cannot realistically fail.
Make sure this release comes with a minimum of components.
Note that we already don't merge PRs in rust-lang/rust that don't
build cargo, so this cannot realistically fail.
Make sure this release comes with a minimum of components . Note that we already don ' t merge PRs in rust - lang / rust that don ' t build cargo so this cannot realistically fail .
fn assert_all_components_present(&self) -> Result<(), Error> {
        if self.config.channel != Channel::Nightly {
            return Ok(());
        }
        let mut components = Vec::new();
        for entry in self.dl_dir().read_dir()? {
            let name = entry?.file_name().into_string().unwrap();
            if name.contains("x86_64-unknown-linux-gnu") {
                components.push(name);
            }
        }
        assert!(components.iter().any(|s| s.starts_with("rustc-")));
        assert!(components.iter().any(|s| s.starts_with("rust-std-")));
        assert!(components.iter().any(|s| s.starts_with("cargo-")));
        // For now, produce nightlies even if these are missing.
        // assert!(components.iter().any(|s| s.starts_with("rustfmt-")));
        // assert!(components.iter().any(|s| s.starts_with("rls-")));
        // assert!(components.iter().any(|s| s.starts_with("clippy-")));
        Ok(())
    }
fn assert_all_components_present ( & self ) -> Result < ( ) , Error > { if self . config . channel != Channel :: Nightly { return Ok ( ( ) ) ; } let mut components = Vec :: new ( ) ; for entry in self . dl_dir ( ) . read_dir ( ) ? { let name = entry ? . file_name ( ) . into_string ( ) . unwrap ( ) ; if name . contains ( " " ) { components . push ( name ) ; } } assert ! ( components iter ( ) any ( s s starts_with ( " " ) ) ) ; assert ! ( components iter ( ) any ( s s starts_with ( " " ) ) ) ; assert ! ( components iter ( ) any ( s s starts_with ( " " ) ) ) ; // For now, produce nightlies even if these are missing. // assert!(components.iter().any(|s| s.starts_with("rustfmt-"))); // assert!(components.iter().any(|s| s.starts_with("rls-"))); // assert!(components.iter().any(|s| s.starts_with("clippy-"))); Ok ( ( ) ) }
Make sure this release comes with a minimum of components.
Make sure this release comes with a minimum of components .
&self
&self