We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac8878 commit 97d1b0cCopy full SHA for 97d1b0c
compiler/rustc_hir_analysis/src/check/intrinsic.rs
@@ -199,7 +199,8 @@ pub fn check_intrinsic_type(
199
let split: Vec<&str> = name_str.split('_').collect();
200
assert!(split.len() >= 2, "Atomic intrinsic in an incorrect format");
201
202
- //We only care about the operation here
+ // Each atomic op has variants with different suffixes (`_seq_cst`, `_acquire`, etc.). Use
203
+ // string ops to strip the suffixes, because the variants all get the same treatment here.
204
let (n_tps, inputs, output) = match split[1] {
205
"cxchg" | "cxchgweak" => (
206
1,
0 commit comments