File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1217,7 +1217,7 @@ where
1217
1217
///
1218
1218
/// Note that `Trace` is the maximum level, because it provides the maximum amount of detail in the emitted logs.
1219
1219
#[ inline]
1220
- #[ cfg( atomic_cas ) ]
1220
+ #[ cfg( target_has_atomic = "ptr" ) ]
1221
1221
pub fn set_max_level ( level : LevelFilter ) {
1222
1222
MAX_LOG_LEVEL_FILTER . store ( level as usize , Ordering :: Relaxed ) ;
1223
1223
}
@@ -1244,7 +1244,7 @@ pub fn set_max_level(level: LevelFilter) {
1244
1244
#[ inline]
1245
1245
pub unsafe fn set_max_level_racy ( level : LevelFilter ) {
1246
1246
// `MAX_LOG_LEVEL_FILTER` uses a `Cell` as the underlying primitive when a
1247
- // platform doesn't support `atomic_cas `, so even though this looks the same
1247
+ // platform doesn't support `target_has_atomic = "ptr" `, so even though this looks the same
1248
1248
// as `set_max_level` it may have different safety properties.
1249
1249
MAX_LOG_LEVEL_FILTER . store ( level as usize , Ordering :: Relaxed ) ;
1250
1250
}
You can’t perform that action at this time.
0 commit comments