@@ -57,7 +57,7 @@ use url::Url;
57
57
58
58
use core:: { PackageId , Registry , SourceId , Summary , Dependency } ;
59
59
use core:: PackageIdSpec ;
60
- use core :: shell :: Shell ;
60
+ use util :: config :: Config ;
61
61
use util:: Graph ;
62
62
use util:: errors:: { CargoResult , CargoError } ;
63
63
use util:: profile;
@@ -342,7 +342,7 @@ type Activations = HashMap<String, HashMap<SourceId, Vec<Summary>>>;
342
342
pub fn resolve ( summaries : & [ ( Summary , Method ) ] ,
343
343
replacements : & [ ( PackageIdSpec , Dependency ) ] ,
344
344
registry : & mut Registry ,
345
- shell : Option < & mut Shell > ) -> CargoResult < Resolve > {
345
+ config : Option < & Config > ) -> CargoResult < Resolve > {
346
346
let cx = Context {
347
347
resolve_graph : RcList :: new ( ) ,
348
348
resolve_features : HashMap :: new ( ) ,
@@ -377,7 +377,8 @@ pub fn resolve(summaries: &[(Summary, Method)],
377
377
trace ! ( "resolved: {:?}" , resolve) ;
378
378
379
379
// If we have a shell, emit warnings about required deps used as feature.
380
- if let Some ( shell) = shell {
380
+ if let Some ( config) = config {
381
+ let mut shell = config. shell ( ) ;
381
382
let mut warnings = & cx. warnings ;
382
383
while let Some ( ref head) = warnings. head {
383
384
shell. warn ( & head. 0 ) ?;
0 commit comments