From 0bfebb8b2042e787c16bbfa26b1cbcd9425de2ab Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 14 Feb 2020 19:33:39 +0100 Subject: Make AtomicX type resolve again --- crates/ra_project_model/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates/ra_project_model/src') diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index fef405b7f..250255813 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs @@ -418,8 +418,10 @@ pub fn get_rustc_cfg_options() -> CfgOptions { // Some nightly-only cfgs, which are required for stdlib { cfg_options.insert_atom("target_thread_local".into()); - for &target_has_atomic in ["16", "32", "64", "8", "cas", "ptr"].iter() { - cfg_options.insert_key_value("target_has_atomic".into(), target_has_atomic.into()) + for &target_has_atomic in ["8", "16", "32", "64", "cas", "ptr"].iter() { + cfg_options.insert_key_value("target_has_atomic".into(), target_has_atomic.into()); + cfg_options + .insert_key_value("target_has_atomic_load_store".into(), target_has_atomic.into()); } } -- cgit v1.2.3