@@ -759,7 +759,7 @@ impl FilterRule {
759
759
}
760
760
761
761
impl CompileFilter {
762
- /// Construct a CompileFilter from raw command line arguments.
762
+ /// Constructs a filter from raw command line arguments.
763
763
pub fn from_raw_arguments (
764
764
lib_only : bool ,
765
765
bins : Vec < String > ,
@@ -788,7 +788,7 @@ impl CompileFilter {
788
788
CompileFilter :: new ( rule_lib, rule_bins, rule_tsts, rule_exms, rule_bens)
789
789
}
790
790
791
- /// Construct a CompileFilter from underlying primitives.
791
+ /// Constructs a filter from underlying primitives.
792
792
pub fn new (
793
793
rule_lib : LibRule ,
794
794
rule_bins : FilterRule ,
@@ -817,6 +817,7 @@ impl CompileFilter {
817
817
}
818
818
}
819
819
820
+ /// Constructs a filter that includes all targets.
820
821
pub fn new_all_targets ( ) -> CompileFilter {
821
822
CompileFilter :: Only {
822
823
all_targets : true ,
@@ -872,6 +873,7 @@ impl CompileFilter {
872
873
}
873
874
}
874
875
876
+ /// Indicates if Cargo needs to build any dev dependency.
875
877
pub fn need_dev_deps ( & self , mode : CompileMode ) -> bool {
876
878
match mode {
877
879
CompileMode :: Test | CompileMode :: Doctest | CompileMode :: Bench => true ,
@@ -892,8 +894,8 @@ impl CompileFilter {
892
894
}
893
895
}
894
896
895
- // this selects targets for "cargo run". for logic to select targets for
896
- // other subcommands, see generate_targets and filter_default_targets
897
+ /// Selects targets for "cargo run". for logic to select targets for other
898
+ /// subcommands, see ` generate_targets` and ` filter_default_targets`.
897
899
pub fn target_run ( & self , target : & Target ) -> bool {
898
900
match * self {
899
901
CompileFilter :: Default { .. } => true ,
0 commit comments