about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-10 18:56:10 +0530
committerGitHub <noreply@github.com>2022-09-10 18:56:10 +0530
commitb0455e9ab470ef49ee3e23b4bc8a15c55aad1742 (patch)
tree636c8176cca8d9714824ce26c882bf89e2aa8cbb /compiler/rustc_data_structures/src
parent6afbe3eca92da175a197cdd3d75cf9c623bf53eb (diff)
parentd2c53caee218296482c11a56354688a9a7e9636f (diff)
downloadrust-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.rs2
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> {