target_feature: make it more clear what that 'Option' means
This commit is contained in:
parent
a04d56b36d
commit
5b5006916b
3 changed files with 274 additions and 245 deletions
|
@ -384,7 +384,7 @@ pub fn target_features(sess: &Session, allow_unstable: bool, target_info: &Locke
|
|||
.iter()
|
||||
.filter_map(
|
||||
|&(feature, gate)| {
|
||||
if sess.is_nightly_build() || allow_unstable || gate.is_none() { Some(feature) } else { None }
|
||||
if sess.is_nightly_build() || allow_unstable || gate.is_stable() { Some(feature) } else { None }
|
||||
},
|
||||
)
|
||||
.filter(|_feature| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue