@@ -182,7 +182,7 @@ impl<'a> UnitGenerator<'a, '_> {
182182 . iter ( )
183183 . filter ( |t| t. tested ( ) || t. is_example ( ) )
184184 . collect ( ) ,
185- UserIntent :: Build | UserIntent :: Check { .. } => targets
185+ UserIntent :: Build | UserIntent :: Install | UserIntent :: Check { .. } => targets
186186 . iter ( )
187187 . filter ( |t| t. is_bin ( ) || t. is_lib ( ) )
188188 . collect ( ) ,
@@ -453,7 +453,7 @@ impl<'a> UnitGenerator<'a, '_> {
453453 FilterRule :: Just ( _) => Target :: is_test,
454454 } ;
455455 let test_mode = match self . intent {
456- UserIntent :: Build => CompileMode :: Test ,
456+ UserIntent :: Build | UserIntent :: Install => CompileMode :: Test ,
457457 UserIntent :: Check { .. } => CompileMode :: Check { test : true } ,
458458 _ => default_mode,
459459 } ;
@@ -775,7 +775,7 @@ Rustdoc did not scrape the following examples because they require dev-dependenc
775775fn to_compile_mode ( intent : UserIntent ) -> CompileMode {
776776 match intent {
777777 UserIntent :: Test | UserIntent :: Bench => CompileMode :: Test ,
778- UserIntent :: Build => CompileMode :: Build ,
778+ UserIntent :: Build | UserIntent :: Install => CompileMode :: Build ,
779779 UserIntent :: Check { test } => CompileMode :: Check { test } ,
780780 UserIntent :: Doc { .. } => CompileMode :: Doc ,
781781 UserIntent :: Doctest => CompileMode :: Doctest ,
0 commit comments