about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2015-08-07 14:41:33 +0300
committerAriel Ben-Yehuda <arielb1@mail.tau.ac.il>2015-08-07 15:03:09 +0300
commiteedb1cc5765b043f31ca4316c42f2ac8d7df1919 (patch)
tree8d8d57104da8015eb928330cd5d26f57b34f25f1 /src/librustc_data_structures
parent62cd3cc46b533c3d1b6c94cc1d13a3be8a8c23ab (diff)
downloadrust-eedb1cc5765b043f31ca4316c42f2ac8d7df1919.tar.gz
rust-eedb1cc5765b043f31ca4316c42f2ac8d7df1919.zip
rename ADTDef to AdtDef etc.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/ivar.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_data_structures/ivar.rs b/src/librustc_data_structures/ivar.rs
index c16a2ea077c..dabe1b984df 100644
--- a/src/librustc_data_structures/ivar.rs
+++ b/src/librustc_data_structures/ivar.rs
@@ -20,6 +20,10 @@ use std::cell::Cell;
 /// if you attempt to read the value before it has been set. It is also
 /// not `Sync`, but may be extended in the future to be usable as a true
 /// concurrency type.
+///
+/// The `T: Copy` bound is not strictly needed, but it is required by
+/// Cell (so removing it would require using UnsafeCell), and it
+/// suffices for the current purposes.
 #[derive(PartialEq)]
 pub struct Ivar<T: Copy> {
     data: Cell<Option<T>>