File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ fn target(sess: &rustc_session::Session) -> types::Target {
148
148
. copied ( )
149
149
. filter ( |( _, stability, _) | {
150
150
// Describe only target features which the user can toggle
151
- stability. toggle_allowed ( ) . is_ok ( )
151
+ stability. toggle_allowed ( |flag| sess . opts . target_feature_flag_enabled ( flag ) ) . is_ok ( )
152
152
} )
153
153
. map ( |( name, stability, implied_features) | {
154
154
types:: TargetFeature {
@@ -164,7 +164,13 @@ fn target(sess: &rustc_session::Session) -> types::Target {
164
164
// Imply only target features which the user can toggle
165
165
feature_stability
166
166
. get ( name)
167
- . map ( |stability| stability. toggle_allowed ( ) . is_ok ( ) )
167
+ . map ( |stability| {
168
+ stability
169
+ . toggle_allowed ( |flag| {
170
+ sess. opts . target_feature_flag_enabled ( flag)
171
+ } )
172
+ . is_ok ( )
173
+ } )
168
174
. unwrap_or ( false )
169
175
} )
170
176
. map ( String :: from)
You can’t perform that action at this time.
0 commit comments