@@ -672,7 +672,7 @@ where
672
672
// TODO: do we really need this as a separate function?
673
673
// Maybe we should reorganize `rustc` fn to make it more traceable and readable.
674
674
fn prepare_rustc (
675
- cx : & mut Context < ' _ , ' _ > ,
675
+ cx : & Context < ' _ , ' _ > ,
676
676
crate_types : & [ CrateType ] ,
677
677
unit : & Unit ,
678
678
) -> CargoResult < ProcessBuilder > {
@@ -942,7 +942,7 @@ fn add_error_format_and_color(cx: &Context<'_, '_>, cmd: &mut ProcessBuilder) {
942
942
943
943
/// Adds essential rustc flags and environment variables to the command to execute.
944
944
fn build_base_args (
945
- cx : & mut Context < ' _ , ' _ > ,
945
+ cx : & Context < ' _ , ' _ > ,
946
946
cmd : & mut ProcessBuilder ,
947
947
unit : & Unit ,
948
948
crate_types : & [ CrateType ] ,
@@ -1241,11 +1241,7 @@ fn lto_args(cx: &Context<'_, '_>, unit: &Unit) -> Vec<OsString> {
1241
1241
///
1242
1242
/// [`-L`]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#-l-add-a-directory-to-the-library-search-path
1243
1243
/// [`--extern`]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#--extern-specify-where-an-external-library-is-located
1244
- fn build_deps_args (
1245
- cmd : & mut ProcessBuilder ,
1246
- cx : & mut Context < ' _ , ' _ > ,
1247
- unit : & Unit ,
1248
- ) -> CargoResult < ( ) > {
1244
+ fn build_deps_args ( cmd : & mut ProcessBuilder , cx : & Context < ' _ , ' _ > , unit : & Unit ) -> CargoResult < ( ) > {
1249
1245
let bcx = cx. bcx ;
1250
1246
cmd. arg ( "-L" ) . arg ( & {
1251
1247
let mut deps = OsString :: from ( "dependency=" ) ;
0 commit comments