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