]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #69266 - Zoxc:fix-source-map-race, r=wesleywiser
authorDylan DPC <dylan.dpc@gmail.com>
Thu, 20 Feb 2020 09:49:13 +0000 (10:49 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 09:49:13 +0000 (10:49 +0100)
commit5d285dcb220b58a8bdef7304f54bc0d8f184393c
tree19b3e7c420aa24223fe314bcaea5d4e78b91bb60
parentd96951f5543869567e30ab1c63c0ac44d0d74c30
parent437f56edf43182955bb099a0d95970d63492196c
Rollup merge of #69266 - Zoxc:fix-source-map-race, r=wesleywiser

Fix race condition when allocating source files in SourceMap

This makes allocating address space in the source map an atomic operation. `rustc` does not currently do this in parallel, so this bug can't trigger, but parsing files in parallel could trigger it, and that is something we want to do.

Fixes https://github.com/rust-lang/rust/issues/69261.

r? @wesleywiser