@@ -597,7 +597,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
597
597
Ok ( Unit {
598
598
pkg : pkg,
599
599
target : t,
600
- profile : self . lib_profile ( id ) ,
600
+ profile : self . lib_profile ( ) ,
601
601
kind : unit. kind . for_target ( t) ,
602
602
} )
603
603
} )
@@ -630,7 +630,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
630
630
Unit {
631
631
pkg : unit. pkg ,
632
632
target : t,
633
- profile : self . lib_profile ( id ) ,
633
+ profile : self . lib_profile ( ) ,
634
634
kind : unit. kind . for_target ( t) ,
635
635
}
636
636
} ) ) ;
@@ -707,7 +707,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
707
707
ret. push ( Unit {
708
708
pkg : dep,
709
709
target : lib,
710
- profile : self . lib_profile ( dep . package_id ( ) ) ,
710
+ profile : self . lib_profile ( ) ,
711
711
kind : unit. kind . for_target ( lib) ,
712
712
} ) ;
713
713
if self . build_config . doc_all {
@@ -753,7 +753,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
753
753
Unit {
754
754
pkg : unit. pkg ,
755
755
target : t,
756
- profile : self . lib_profile ( unit . pkg . package_id ( ) ) ,
756
+ profile : self . lib_profile ( ) ,
757
757
kind : unit. kind . for_target ( t) ,
758
758
}
759
759
} )
@@ -808,7 +808,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
808
808
/// Number of jobs specified for this build
809
809
pub fn jobs ( & self ) -> u32 { self . build_config . jobs }
810
810
811
- pub fn lib_profile ( & self , _pkg : & PackageId ) -> & ' a Profile {
811
+ pub fn lib_profile ( & self ) -> & ' a Profile {
812
812
let ( normal, test) = if self . build_config . release {
813
813
( & self . profiles . release , & self . profiles . bench_deps )
814
814
} else {
@@ -821,10 +821,10 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
821
821
}
822
822
}
823
823
824
- pub fn build_script_profile ( & self , pkg : & PackageId ) -> & ' a Profile {
824
+ pub fn build_script_profile ( & self , _pkg : & PackageId ) -> & ' a Profile {
825
825
// TODO: should build scripts always be built with the same library
826
826
// profile? How is this controlled at the CLI layer?
827
- self . lib_profile ( pkg )
827
+ self . lib_profile ( )
828
828
}
829
829
830
830
pub fn rustflags_args ( & self , unit : & Unit ) -> CargoResult < Vec < String > > {
0 commit comments