Skip to content

Commit 5c8c8bc

Browse files
committed
auto merge of #9759 : thestinger/rust/immediate, r=alexcrichton
Closes #9651
2 parents e87205c + ac1faba commit 5c8c8bc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/librustc/middle/trans/common.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ pub fn type_is_immediate(ccx: &mut CrateContext, ty: ty::t) -> bool {
7070
return true;
7171
}
7272
match ty::get(ty).sty {
73-
// FIXME: #9651: small `ty_struct` should also be immediate
74-
ty::ty_struct(def_id, ref substs) => {
75-
ty::struct_fields(tcx, def_id, substs).is_empty()
76-
}
77-
ty::ty_enum(*) | ty::ty_tup(*) => {
73+
ty::ty_struct(*) | ty::ty_enum(*) | ty::ty_tup(*) => {
7874
let llty = sizing_type_of(ccx, ty);
7975
llsize_of_alloc(ccx, llty) <= llsize_of_alloc(ccx, ccx.int_type)
8076
}

src/libstd/unstable/sync.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use vec;
2626
/// An atomically reference counted pointer.
2727
///
2828
/// Enforces no shared-memory safety.
29-
#[unsafe_no_drop_flag]
29+
//#[unsafe_no_drop_flag] FIXME: #9758
3030
pub struct UnsafeArc<T> {
3131
data: *mut ArcData<T>,
3232
}
@@ -427,6 +427,8 @@ mod tests {
427427
use util;
428428
use sys::size_of;
429429

430+
//#[unsafe_no_drop_flag] FIXME: #9758
431+
#[ignore]
430432
#[test]
431433
fn test_size() {
432434
assert_eq!(size_of::<UnsafeArc<[int, ..10]>>(), size_of::<*[int, ..10]>());

0 commit comments

Comments
 (0)