Skip to content

Commit 0bfebb8

Browse files
committed
Make AtomicX type resolve again
1 parent 2316f8c commit 0bfebb8

File tree

1 file changed

+4
-2
lines changed
  • crates/ra_project_model/src

1 file changed

+4
-2
lines changed

crates/ra_project_model/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,10 @@ pub fn get_rustc_cfg_options() -> CfgOptions {
418418
// Some nightly-only cfgs, which are required for stdlib
419419
{
420420
cfg_options.insert_atom("target_thread_local".into());
421-
for &target_has_atomic in ["16", "32", "64", "8", "cas", "ptr"].iter() {
422-
cfg_options.insert_key_value("target_has_atomic".into(), target_has_atomic.into())
421+
for &target_has_atomic in ["8", "16", "32", "64", "cas", "ptr"].iter() {
422+
cfg_options.insert_key_value("target_has_atomic".into(), target_has_atomic.into());
423+
cfg_options
424+
.insert_key_value("target_has_atomic_load_store".into(), target_has_atomic.into());
423425
}
424426
}
425427

0 commit comments

Comments
 (0)