@@ -178,8 +178,9 @@ fn parse_rust_feature_flag<'a>(
178
178
if let Some ( base_feature) = feature. strip_prefix ( '+' ) {
179
179
callback ( base_feature, sess. target . implied_target_features ( base_feature) , true )
180
180
} else if let Some ( base_feature) = feature. strip_prefix ( '-' ) {
181
- // If `f1` implies `f2`, then `!f2` implies `!f1` -- this is standard logical contraposition.
182
- // So we have to find all the reverse implications of `base_feature` and disable them, too.
181
+ // If `f1` implies `f2`, then `!f2` implies `!f1` -- this is standard logical
182
+ // contraposition. So we have to find all the reverse implications of `base_feature` and
183
+ // disable them, too.
183
184
184
185
let inverse_implied_features = inverse_implied_features. get_or_insert_with ( || {
185
186
let mut set: FxHashMap < & str , FxHashSet < & str > > = FxHashMap :: default ( ) ;
@@ -191,7 +192,7 @@ fn parse_rust_feature_flag<'a>(
191
192
set
192
193
} ) ;
193
194
194
- // Inverse mplied target features have their own inverse implied target features, so we
195
+ // Inverse implied target features have their own inverse implied target features, so we
195
196
// traverse the map until there are no more features to add.
196
197
let mut features = FxHashSet :: default ( ) ;
197
198
let mut new_features = vec ! [ base_feature] ;
@@ -214,8 +215,8 @@ fn parse_rust_feature_flag<'a>(
214
215
/// to populate `sess.unstable_target_features` and `sess.target_features` (these are the first and
215
216
/// 2nd component of the return value, respectively).
216
217
///
217
- /// `target_base_has_feature` should check whether the given feature (a Rust feature name!) is enabled
218
- /// in the "base" target machine, i.e., without applying `-Ctarget-feature`.
218
+ /// `target_base_has_feature` should check whether the given feature (a Rust feature name!) is
219
+ /// enabled in the "base" target machine, i.e., without applying `-Ctarget-feature`.
219
220
///
220
221
/// We do not have to worry about RUSTC_SPECIFIC_FEATURES here, those are handled elsewhere.
221
222
pub fn cfg_target_feature (
@@ -339,8 +340,8 @@ pub fn flag_to_backend_features<'a, const N: usize>(
339
340
let feature_state = known_features. iter ( ) . find ( |& & ( v, _, _) | v == base_feature) ;
340
341
match feature_state {
341
342
None => {
342
- // This is definitely not a valid Rust feature name. Maybe it is a backend feature name?
343
- // If so, give a better error message.
343
+ // This is definitely not a valid Rust feature name. Maybe it is a backend
344
+ // feature name? If so, give a better error message.
344
345
let rust_feature =
345
346
known_features. iter ( ) . find_map ( |& ( rust_feature, _, _) | {
346
347
let backend_features = to_backend_features ( rust_feature) ;
@@ -432,7 +433,8 @@ pub(crate) fn provide(providers: &mut Providers) {
432
433
Stability :: Unstable { .. } | Stability :: Forbidden { .. } ,
433
434
)
434
435
| ( Stability :: Forbidden { .. } , Stability :: Forbidden { .. } ) => {
435
- // The stability in the entry is at least as good as the new one, just keep it.
436
+ // The stability in the entry is at least as good as the new
437
+ // one, just keep it.
436
438
}
437
439
_ => {
438
440
// Overwrite stabilite.
0 commit comments