]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #50538 - michaelwoerister:atomic-cnums, r=Zoxc
authorAlex Crichton <alex@alexcrichton.com>
Thu, 10 May 2018 16:35:24 +0000 (11:35 -0500)
committerGitHub <noreply@github.com>
Thu, 10 May 2018 16:35:24 +0000 (11:35 -0500)
 Make CrateNum allocation more thread-safe.

This PR makes sure that we can't have race conditions when assigning CrateNums. It's a slight improvement but a larger refactoring of the CrateStore/CrateLoader infrastructure would be good, I think.

r? @Zoxc

1  2 
src/librustc_metadata/creader.rs
src/librustc_metadata/cstore.rs

Simple merge
Simple merge