1
Fork 0

rollup merge of #20556: japaric/no-for-sized

Conflicts:
	src/libcollections/slice.rs
	src/libcollections/str.rs
	src/libcore/borrow.rs
	src/libcore/cmp.rs
	src/libcore/ops.rs
	src/libstd/c_str.rs
	src/test/compile-fail/issue-19009.rs
This commit is contained in:
Alex Crichton 2015-01-05 18:47:45 -08:00
commit afbce050ca
43 changed files with 101 additions and 77 deletions

View file

@ -786,7 +786,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
}
/// A trait that represents something bytes-like (e.g. a &[u8] or a &str)
pub trait BytesContainer for Sized? {
pub trait BytesContainer {
/// Returns a &[u8] representing the receiver
fn container_as_bytes<'a>(&'a self) -> &'a [u8];
/// Returns the receiver interpreted as a utf-8 string, if possible