about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2021-01-03 09:19:16 -0500
committerAaron Hill <aa1ronham@gmail.com>2021-01-16 17:53:02 -0500
commit7afb32557da945ec70fc926dbd91006089005fa4 (patch)
treed556d4da0e559d98a25e932835646fc942b70b52 /compiler/rustc_data_structures/src
parent492b83c6971c390af7a42932869502224ef55ef7 (diff)
downloadrust-7afb32557da945ec70fc926dbd91006089005fa4.tar.gz
rust-7afb32557da945ec70fc926dbd91006089005fa4.zip
Enforce that query results implement Debug
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/stable_hasher.rs1
-rw-r--r--compiler/rustc_data_structures/src/steal.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/stable_hasher.rs b/compiler/rustc_data_structures/src/stable_hasher.rs
index 579eb1cb7da..3850c9b74fd 100644
--- a/compiler/rustc_data_structures/src/stable_hasher.rs
+++ b/compiler/rustc_data_structures/src/stable_hasher.rs
@@ -552,6 +552,7 @@ pub fn hash_stable_hashmap<HCX, K, V, R, SK, F>(
 
 /// A vector container that makes sure that its items are hashed in a stable
 /// order.
+#[derive(Debug)]
 pub struct StableVec<T>(Vec<T>);
 
 impl<T> StableVec<T> {
diff --git a/compiler/rustc_data_structures/src/steal.rs b/compiler/rustc_data_structures/src/steal.rs
index e532a84cea3..a70ca926383 100644
--- a/compiler/rustc_data_structures/src/steal.rs
+++ b/compiler/rustc_data_structures/src/steal.rs
@@ -21,6 +21,7 @@ use crate::sync::{MappedReadGuard, ReadGuard, RwLock};
 /// -- once the value is stolen -- it will never be read from again.
 //
 // FIXME(#41710): what is the best way to model linear queries?
+#[derive(Debug)]
 pub struct Steal<T> {
     value: RwLock<Option<T>>,
 }