diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-09-23 14:54:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 14:54:04 +0200 |
| commit | eaaf5d7e38b1ee2306cac1ccbcbf3b18bdc6235c (patch) | |
| tree | 54a4256f3d5f33ca005db987915e4d2db0365feb /compiler/rustc_span | |
| parent | 98e5ee7df02c7812441ac31338819cb3f788f4f9 (diff) | |
| parent | bcc1d56917fe061071ebc539b5d2e304a44a7b00 (diff) | |
| download | rust-eaaf5d7e38b1ee2306cac1ccbcbf3b18bdc6235c.tar.gz rust-eaaf5d7e38b1ee2306cac1ccbcbf3b18bdc6235c.zip | |
Rollup merge of #76965 - fusion-engineering-forks:fix-atomic-from-mut, r=Amanieu
Add cfg(target_has_atomic_equal_alignment) and use it for Atomic::from_mut. Fixes some platform-specific problems with #74532 by using the actual alignment of the types instead of hardcoding a few `target_arch`s. r? @RalfJung
Diffstat (limited to 'compiler/rustc_span')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 6085eedf236..60688d26d4c 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -1071,6 +1071,7 @@ symbols! { target_feature, target_feature_11, target_has_atomic, + target_has_atomic_equal_alignment, target_has_atomic_load_store, target_os, target_pointer_width, |
