@@ -182,7 +182,7 @@ impl<'a> UnitGenerator<'a, '_> {
182
182
. iter ( )
183
183
. filter ( |t| t. tested ( ) || t. is_example ( ) )
184
184
. collect ( ) ,
185
- UserIntent :: Build | UserIntent :: Check { .. } => targets
185
+ UserIntent :: Build | UserIntent :: Install | UserIntent :: Check { .. } => targets
186
186
. iter ( )
187
187
. filter ( |t| t. is_bin ( ) || t. is_lib ( ) )
188
188
. collect ( ) ,
@@ -453,7 +453,7 @@ impl<'a> UnitGenerator<'a, '_> {
453
453
FilterRule :: Just ( _) => Target :: is_test,
454
454
} ;
455
455
let test_mode = match self . intent {
456
- UserIntent :: Build => CompileMode :: Test ,
456
+ UserIntent :: Build | UserIntent :: Install => CompileMode :: Test ,
457
457
UserIntent :: Check { .. } => CompileMode :: Check { test : true } ,
458
458
_ => default_mode,
459
459
} ;
@@ -775,7 +775,7 @@ Rustdoc did not scrape the following examples because they require dev-dependenc
775
775
fn to_compile_mode ( intent : UserIntent ) -> CompileMode {
776
776
match intent {
777
777
UserIntent :: Test | UserIntent :: Bench => CompileMode :: Test ,
778
- UserIntent :: Build => CompileMode :: Build ,
778
+ UserIntent :: Build | UserIntent :: Install => CompileMode :: Build ,
779
779
UserIntent :: Check { test } => CompileMode :: Check { test } ,
780
780
UserIntent :: Doc { .. } => CompileMode :: Doc ,
781
781
UserIntent :: Doctest => CompileMode :: Doctest ,
0 commit comments