Subject: [PATCH] Disable some more unsupported stuff in libcore
---
- src/libcore/cell.rs | 6 +++---
src/libcore/cmp.rs | 5 ++++-
src/libcore/num/mod.rs | 8 ++++++--
- src/libcore/str/mod.rs | 6 +++---
- 4 files changed, 16 insertions(+), 9 deletions(-)
+ 2 files changed, 9 insertions(+), 3 deletions(-)
-diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
-index 009aba5..2aa76e3 100644
---- a/src/libcore/cell.rs
-+++ b/src/libcore/cell.rs
-@@ -1532,7 +1532,7 @@ impl<T: CoerceUnsized<U>, U> CoerceUnsized<UnsafeCell<U>> for UnsafeCell<T> {}
-
- #[allow(unused)]
- fn assert_coerce_unsized(a: UnsafeCell<&i32>, b: Cell<&i32>, c: RefCell<&i32>) {
-- let _: UnsafeCell<&dyn Send> = a;
-- let _: Cell<&dyn Send> = b;
-- let _: RefCell<&dyn Send> = c;
-+ //let _: UnsafeCell<&dyn Send> = a;
-+ //let _: Cell<&dyn Send> = b;
-+ //let _: RefCell<&dyn Send> = c;
- }
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index a6e6496..f9374ea 100644
--- a/src/libcore/cmp.rs
@@ -496,6 +496,7 @@ pub trait Ord: Eq + PartialOrd<Self> {
#[stable(feature = "rust1", since = "1.0.0")]
impl Eq for Ordering {}
-
+
+/*
#[stable(feature = "rust1", since = "1.0.0")]
impl Ord for Ordering {
}
}
+*/
-
+
#[stable(feature = "rust1", since = "1.0.0")]
impl PartialOrd for Ordering {
#[inline]
+ None
}
}
-
+
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 5d00949..f077f1d 100644
--- a/src/libcore/num/mod.rs
+ 0
}
}
-
+
@@ -2295,7 +2297,9 @@ assert_eq!(m, ", $reversed, ");
#[unstable(feature = "reverse_bits", issue = "48763")]
#[rustc_const_unstable(feature = "const_int_conversion")]
+ 0
}
}
-
-diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
-index 810d19d..4c68370 100644
---- a/src/libcore/str/mod.rs
-+++ b/src/libcore/str/mod.rs
-@@ -26,9 +26,9 @@ use mem;
-
- pub mod pattern;
-
--#[unstable(feature = "str_internals", issue = "0")]
--#[allow(missing_docs)]
--pub mod lossy;
-+//#[unstable(feature = "str_internals", issue = "0")]
-+//#[allow(missing_docs)]
-+//pub mod lossy;
-
- /// A trait to abstract the idea of creating a new instance of a type from a
- /// string.
---
+--
2.11.0
-
fx: &mut FunctionCx<'a, 'tcx, impl Backend>,
field: mir::Field,
) -> CPlace<'tcx> {
- let layout = self.layout();
- if layout.is_unsized() {
- unimpl!("unsized place_field");
+ match self {
+ CPlace::Var(var, layout) => {
+ bug!("Tried to project {:?}, which is put in SSA var {:?}", layout.ty, var);
+ }
+ CPlace::Addr(base, extra, layout) => {
+ let (field_ptr, field_layout) = codegen_field(fx, base, layout, field);
+ CPlace::Addr(field_ptr, extra, field_layout)
+ }
}
-
- let base = self.expect_addr();
- let (field_ptr, field_layout) = codegen_field(fx, base, layout, field);
- CPlace::Addr(field_ptr, None, field_layout)
}
pub fn place_index(