File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ macro_rules! features {
276
276
pub struct Features {
277
277
$( $feature: bool , ) *
278
278
activated: Vec <String >,
279
+ nightly_features_allowed: bool ,
279
280
}
280
281
281
282
impl Feature {
@@ -416,6 +417,7 @@ impl Features {
416
417
ret. add ( feature, config, warnings) ?;
417
418
ret. activated . push ( feature. to_string ( ) ) ;
418
419
}
420
+ ret. nightly_features_allowed = config. nightly_features_allowed ;
419
421
Ok ( ret)
420
422
}
421
423
@@ -497,9 +499,7 @@ impl Features {
497
499
let feature = feature. name . replace ( "_" , "-" ) ;
498
500
let mut msg = format ! ( "feature `{}` is required" , feature) ;
499
501
500
- // TODO
501
- let channel = channel ( ) ;
502
- if channel == "nightly" || channel == "dev" {
502
+ if self . nightly_features_allowed {
503
503
let s = format ! (
504
504
"\n \n consider adding `cargo-features = [\" {0}\" ]` \
505
505
to the manifest",
You can’t perform that action at this time.
0 commit comments