File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,12 @@ impl Package {
188
188
189
189
/// Returns explicit kinds either forced by `forced-target` in `Cargo.toml`,
190
190
/// fallback to `default-target`, or specified in cli parameters.
191
+ ///
192
+ /// If `--target` has not been specified, then the return value
193
+ /// is the same as if `--target $HOST` was specified. See
194
+ /// `rebuild_unit_graph_shared` for why callers want to do this.
195
+ /// However, if the package has its own `package.default-target`
196
+ /// key, then that gets used instead of `$HOST`
191
197
pub fn explicit_kinds (
192
198
& self ,
193
199
requested_kinds : & [ CompileKind ] ,
Original file line number Diff line number Diff line change @@ -1047,12 +1047,6 @@ fn generate_targets(
1047
1047
let features_for = FeaturesFor :: from_for_host ( target. proc_macro ( ) ) ;
1048
1048
let features = resolved_features. activated_features ( pkg. package_id ( ) , features_for) ;
1049
1049
1050
- // If `--target` has not been specified, then the unit
1051
- // graph is built almost like if `--target $HOST` was
1052
- // specified. See `rebuild_unit_graph_shared` for more on
1053
- // why this is done. However, if the package has its own
1054
- // `package.target` key, then this gets used instead of
1055
- // `$HOST`
1056
1050
let explicit_kinds = pkg. explicit_kinds ( requested_kinds, explicit_host_kind) ;
1057
1051
1058
1052
for kind in explicit_kinds. iter ( ) {
You can’t perform that action at this time.
0 commit comments