]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #82155 - tmiasko:once, r=matthewjasper
authorYuki Okushi <huyuumi.dev@gmail.com>
Thu, 18 Feb 2021 06:57:27 +0000 (15:57 +0900)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 06:57:27 +0000 (15:57 +0900)
commit9d33abdc2a1dce2f933b84fff4ea351216365ede
tree436566234f893d2a6299f22d5ac0125e8ed8735b
parent0c25d154bd5b48819f490ac4a630f28fcfe4d321
parent64b5b75e65f010d88175fbb98b4396ccede5c32e
Rollup merge of #82155 - tmiasko:once, r=matthewjasper

Use !Sync std::lazy::OnceCell in usefulness checking

The `rustc_data_structures::sync::OnceCell` is thread-safe when building
a parallel compiler. This is unnecessary for the purposes of pattern
usefulness checking. Use `!Sync` `std::lazy::OnceCell` instead.