diff options
| author | bors <bors@rust-lang.org> | 2014-10-03 05:02:37 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-10-03 05:02:37 +0000 |
| commit | aa034cd3bac3155e0f6c74c399314b5ee32f88fc (patch) | |
| tree | 891acff8f9158a69e1884707ca3bfb70d749db2e /src/test/run-pass/enum-null-pointer-opt.rs | |
| parent | d0af3feebb57bc58c52de69ab51f92dc7082500b (diff) | |
| parent | d911936dbdc645133ad9605f45d2bf10b73e2b20 (diff) | |
| download | rust-aa034cd3bac3155e0f6c74c399314b5ee32f88fc.tar.gz rust-aa034cd3bac3155e0f6c74c399314b5ee32f88fc.zip | |
auto merge of #17725 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/test/run-pass/enum-null-pointer-opt.rs')
| -rw-r--r-- | src/test/run-pass/enum-null-pointer-opt.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/run-pass/enum-null-pointer-opt.rs b/src/test/run-pass/enum-null-pointer-opt.rs index 433c3b54224..3e22c833183 100644 --- a/src/test/run-pass/enum-null-pointer-opt.rs +++ b/src/test/run-pass/enum-null-pointer-opt.rs @@ -9,7 +9,6 @@ // except according to those terms. -use std::gc::Gc; use std::mem::size_of; trait Trait {} @@ -33,9 +32,8 @@ fn main() { assert_eq!(size_of::<&Trait>(), size_of::<Option<&Trait>>()); assert_eq!(size_of::<&mut Trait>(), size_of::<Option<&mut Trait>>()); - // Pointers - Box<T> / Gc<T> + // Pointers - Box<T> assert_eq!(size_of::<Box<int>>(), size_of::<Option<Box<int>>>()); - assert_eq!(size_of::<Gc<int>>(), size_of::<Option<Gc<int>>>()); // The optimization can't apply to raw pointers |
