diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2016-04-15 20:16:19 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2016-05-09 13:31:47 +0100 |
| commit | 04835ea5ec669636fdfbd84d17dbdda4c36bdd9c (patch) | |
| tree | 68cb2f4695224201da6ed6351749d75ea38d7375 /src/libsyntax | |
| parent | 50909f2d5036e59871f779500dd722a62421c13c (diff) | |
| download | rust-04835ea5ec669636fdfbd84d17dbdda4c36bdd9c.tar.gz rust-04835ea5ec669636fdfbd84d17dbdda4c36bdd9c.zip | |
Add #[cfg(target_has_atomic)] to get atomic support for the current target
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 7f01821b004..cf797b85f54 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -268,8 +268,11 @@ declare_features! ( // pub(restricted) visibilities (RFC 1422) (active, pub_restricted, "1.9.0", Some(32409)), - // Allow Drop types in statics/const functions (RFC 1440) - (active, drop_types_in_const, "1.9.0", Some(33156)) + // Allow Drop types in statics/const functions (RFC 1440) + (active, drop_types_in_const, "1.9.0", Some(33156)), + + // Allows cfg(target_has_atomic = "..."). + (active, cfg_target_has_atomic, "1.9.0", Some(32976)) ); declare_features! ( @@ -577,6 +580,7 @@ const GATED_CFGS: &'static [(&'static str, &'static str, fn(&Features) -> bool)] ("target_feature", "cfg_target_feature", cfg_fn!(cfg_target_feature)), ("target_vendor", "cfg_target_vendor", cfg_fn!(cfg_target_vendor)), ("target_thread_local", "cfg_target_thread_local", cfg_fn!(cfg_target_thread_local)), + ("target_has_atomic", "cfg_target_has_atomic", cfg_fn!(cfg_target_has_atomic)), ]; #[derive(Debug, Eq, PartialEq)] |
