fn common_inputs_stamp(config: &Config) -> Stamp {
    let rust_src_dir = config.find_rust_src_root().expect("Could not find Rust source root");

    let mut stamp = Stamp::from_path(&config.rustc_path);

    // Relevant pretty printer files
    let pretty_printer_files = [
        "src/etc/rust_types.py",
        "src/etc/gdb_load_rust_pretty_printers.py",
        "src/etc/gdb_lookup.py",
        "src/etc/gdb_providers.py",
        "src/etc/lldb_batchmode.py",
        "src/etc/lldb_lookup.py",
        "src/etc/lldb_providers.py",
    ];
    for file in &pretty_printer_files {
        let path = rust_src_dir.join(file);
        stamp.add_path(&path);
    }

    stamp.add_dir(&config.run_lib_path);

    if let Some(ref rustdoc_path) = config.rustdoc_path {
        stamp.add_path(&rustdoc_path);
        stamp.add_path(&rust_src_dir.join("src/etc/htmldocck.py"));
    }

    // Compiletest itself.
    stamp.add_dir(&rust_src_dir.join("src/tools/compiletest/"));

    stamp
}
/// Returns a stamp constructed from input files common to all test cases.
Returns a stamp constructed from input files common to all test cases.
Returns a stamp constructed from input files common to all test cases .
fn common_inputs_stamp(config: &Config) -> Stamp {
    let rust_src_dir = config.find_rust_src_root().expect("Could not find Rust source root");
    let mut stamp = Stamp::from_path(&config.rustc_path);
    // Relevant pretty printer files
    let pretty_printer_files = [
        "src/etc/rust_types.py",
        "src/etc/gdb_load_rust_pretty_printers.py",
        "src/etc/gdb_lookup.py",
        "src/etc/gdb_providers.py",
        "src/etc/lldb_batchmode.py",
        "src/etc/lldb_lookup.py",
        "src/etc/lldb_providers.py",
    ];
    for file in &pretty_printer_files {
        let path = rust_src_dir.join(file);
        stamp.add_path(&path);
    }
    stamp.add_dir(&config.run_lib_path);
    if let Some(ref rustdoc_path) = config.rustdoc_path {
        stamp.add_path(&rustdoc_path);
        stamp.add_path(&rust_src_dir.join("src/etc/htmldocck.py"));
    }
    // Compiletest itself.
    stamp.add_dir(&rust_src_dir.join("src/tools/compiletest/"));
    stamp
}
fn common_inputs_stamp ( config : & Config ) -> Stamp { let rust_src_dir = config . find_rust_src_root ( ) . expect ( " " ) ; let mut stamp = Stamp :: from_path ( & config . rustc_path ) ; // Relevant pretty printer files let pretty_printer_files = [ " " , " " , " " , " " , " " , " " , " " , ] ; for file in & pretty_printer_files { let path = rust_src_dir . join ( file ) ; stamp . add_path ( & path ) ; } stamp . add_dir ( & config . run_lib_path ) ; if let Some ( ref rustdoc_path ) = config . rustdoc_path { stamp . add_path ( & rustdoc_path ) ; stamp . add_path ( & rust_src_dir . join ( " " ) ) ; } // Compiletest itself. stamp . add_dir ( & rust_src_dir . join ( " " ) ) ; stamp }
Returns a stamp constructed from input files common to all test cases.
Returns a stamp constructed from input files common to all test cases .
config
&Config
config
&Config