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
|
|
@ -85,14 +85,14 @@ pub mod rt {
|
|||
*/
|
||||
|
||||
// FIXME: Move this trait to pprust and get rid of *_to_str?
|
||||
pub trait ToSource for Sized? {
|
||||
pub trait ToSource {
|
||||
// Takes a thing and generates a string containing rust code for it.
|
||||
fn to_source(&self) -> String;
|
||||
}
|
||||
|
||||
// FIXME (Issue #16472): This should go away after ToToken impls
|
||||
// are revised to go directly to token-trees.
|
||||
trait ToSourceWithHygiene for Sized? : ToSource {
|
||||
trait ToSourceWithHygiene : ToSource {
|
||||
// Takes a thing and generates a string containing rust code
|
||||
// for it, encoding Idents as special byte sequences to
|
||||
// maintain hygiene across serialization and deserialization.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue