Skip to content

Commit b2add8a

Browse files
committed
target_feature: make it more clear what that 'Option' means
1 parent a13408d commit b2add8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ pub fn target_features(sess: &Session, allow_unstable: bool, target_info: &Locke
384384
.iter()
385385
.filter_map(
386386
|&(feature, gate)| {
387-
if sess.is_nightly_build() || allow_unstable || gate.is_none() { Some(feature) } else { None }
387+
if sess.is_nightly_build() || allow_unstable || gate.is_stable() { Some(feature) } else { None }
388388
},
389389
)
390390
.filter(|_feature| {

0 commit comments

Comments
 (0)