about summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2022-08-29 19:30:25 -0500
committerJoshua Nelson <jnelson@cloudflare.com>2022-09-06 21:41:01 -0500
commitd2c53caee218296482c11a56354688a9a7e9636f (patch)
tree138ee3add6e72f78a98765e868bbd66b3cbc8e79 /compiler/rustc_data_structures
parent699bfa882b34a73b333e684e96984c1c565d2eff (diff)
downloadrust-d2c53caee218296482c11a56354688a9a7e9636f.tar.gz
rust-d2c53caee218296482c11a56354688a9a7e9636f.zip
Move `Queries::new` out of the macro
Diffstat (limited to 'compiler/rustc_data_structures')
-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> {