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:
commit
afbce050ca
43 changed files with 101 additions and 77 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue