diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-09-10 18:56:10 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-10 18:56:10 +0530 |
| commit | b0455e9ab470ef49ee3e23b4bc8a15c55aad1742 (patch) | |
| tree | 636c8176cca8d9714824ce26c882bf89e2aa8cbb /compiler/rustc_data_structures/src | |
| parent | 6afbe3eca92da175a197cdd3d75cf9c623bf53eb (diff) | |
| parent | d2c53caee218296482c11a56354688a9a7e9636f (diff) | |
| download | rust-b0455e9ab470ef49ee3e23b4bc8a15c55aad1742.tar.gz rust-b0455e9ab470ef49ee3e23b4bc8a15c55aad1742.zip | |
Rollup merge of #101635 - jyn514:queries-new-derived, r=cjgillot
Move `Queries::new` out of the macro Split out from https://github.com/rust-lang/rust/pull/101178 to make sure it's not contributing to the perf impact. r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sync.rs b/compiler/rustc_data_structures/src/sync.rs index 258780ecaea..9c0fb8265cf 100644 --- a/compiler/rustc_data_structures/src/sync.rs +++ b/compiler/rustc_data_structures/src/sync.rs @@ -48,7 +48,7 @@ cfg_if! { /// the native atomic types. /// You should use this type through the `AtomicU64`, `AtomicUsize`, etc, type aliases /// as it's not intended to be used separately. - #[derive(Debug)] + #[derive(Debug, Default)] pub struct Atomic<T: Copy>(Cell<T>); impl<T: Copy> Atomic<T> { |
