pub fn generated_output_paths(
    sess: &Session,
    outputs: &OutputFilenames,
    exact_name: bool,
    crate_name: &str,
) -> Vec<PathBuf> {
    let mut out_filenames = Vec::new();
    for output_type in sess.opts.output_types.keys() {
        let file = outputs.path(*output_type);
        match *output_type {
            // If the filename has been overridden using `-o`, it will not be modified
            // by appending `.rlib`, `.exe`, etc., so we can skip this transformation.
            OutputType::Exe if !exact_name => for crate_type in sess.crate_types.borrow().iter() {
                let p = ::rustc_codegen_utils::link::filename_for_input(
                    sess,
                    *crate_type,
                    crate_name,
                    outputs,
                );
                out_filenames.push(p);
            },
            OutputType::DepInfo if sess.opts.debugging_opts.dep_info_omit_d_target => {
                // Don't add the dep-info output when omitting it from dep-info targets
            }
            _ => {
                out_filenames.push(file);
            }
        }
    }
    out_filenames
}
/// Returns all the paths that correspond to generated files.
Returns all the paths that correspond to generated files.
Returns all the paths that correspond to generated files .
pub fn generated_output_paths(
    sess: &Session,
    outputs: &OutputFilenames,
    exact_name: bool,
    crate_name: &str,
) -> Vec<PathBuf> {
    let mut out_filenames = Vec::new();
    for output_type in sess.opts.output_types.keys() {
        let file = outputs.path(*output_type);
        match *output_type {
            // If the filename has been overridden using `-o`, it will not be modified
            // by appending `.rlib`, `.exe`, etc., so we can skip this transformation.
            OutputType::Exe if !exact_name => for crate_type in sess.crate_types.borrow().iter() {
                let p = ::rustc_codegen_utils::link::filename_for_input(
                    sess,
                    *crate_type,
                    crate_name,
                    outputs,
                );
                out_filenames.push(p);
            },
            OutputType::DepInfo if sess.opts.debugging_opts.dep_info_omit_d_target => {
                // Don't add the dep-info output when omitting it from dep-info targets
            }
            _ => {
                out_filenames.push(file);
            }
        }
    }
    out_filenames
}
pub fn generated_output_paths ( sess : & Session , outputs : & OutputFilenames , exact_name : bool , crate_name : & str , ) -> Vec < PathBuf > { let mut out_filenames = Vec :: new ( ) ; for output_type in sess . opts . output_types . keys ( ) { let file = outputs . path ( * output_type ) ; match * output_type { // If the filename has been overridden using `-o`, it will not be modified // by appending `.rlib`, `.exe`, etc., so we can skip this transformation. OutputType :: Exe if ! exact_name => for crate_type in sess . crate_types . borrow ( ) . iter ( ) { let p = :: rustc_codegen_utils :: link :: filename_for_input ( sess , * crate_type , crate_name , outputs , ) ; out_filenames . push ( p ) ; } , OutputType :: DepInfo if sess . opts . debugging_opts . dep_info_omit_d_target => { // Don't add the dep-info output when omitting it from dep-info targets } _ => { out_filenames . push ( file ) ; } } } out_filenames }
Returns all the paths that correspond to generated files.
Returns all the paths that correspond to generated files .
sess
&Session
outputs
&OutputFilenames
exact_name
bool
crate_name
&str
sess
&Session
outputs
&OutputFilenames
exact_name
bool
crate_name
&str