diff options
| author | Andrew Brown <andrew.brown@intel.com> | 2022-09-29 11:17:15 -0700 |
|---|---|---|
| committer | Andrew Brown <andrew.brown@intel.com> | 2022-10-10 09:01:42 -0700 |
| commit | 9530ba0fe2118d9a60e16861faad29ec5803d3f9 (patch) | |
| tree | 167a9919b64cd8dabad62f7c202d4da656a9a85e /compiler/rustc_hir_analysis/src/structured_errors.rs | |
| parent | da638b3a9f32974c41439be6834670d7a438faa3 (diff) | |
| download | rust-9530ba0fe2118d9a60e16861faad29ec5803d3f9.tar.gz rust-9530ba0fe2118d9a60e16861faad29ec5803d3f9.zip | |
Implement `env_lock` with `RwLock`
Copying the approach of the Unix target, this change uses the standard `RwLock` to protect against concurrent access of libc's environment. This locking is only enabled when WebAssembly's `atomics` feature is also enabled.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/structured_errors.rs')
0 files changed, 0 insertions, 0 deletions
