diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-01-03 09:19:16 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-01-16 17:53:02 -0500 |
| commit | 7afb32557da945ec70fc926dbd91006089005fa4 (patch) | |
| tree | d556d4da0e559d98a25e932835646fc942b70b52 /compiler/rustc_data_structures/src/steal.rs | |
| parent | 492b83c6971c390af7a42932869502224ef55ef7 (diff) | |
| download | rust-7afb32557da945ec70fc926dbd91006089005fa4.tar.gz rust-7afb32557da945ec70fc926dbd91006089005fa4.zip | |
Enforce that query results implement Debug
Diffstat (limited to 'compiler/rustc_data_structures/src/steal.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/steal.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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>>, } |
