Skip to content

Conversation

japaric
Copy link
Contributor

@japaric japaric commented Jan 5, 2015

Traits and their Self type no longer have an implicit Sized bound.

If you were using the for Sized? syntax simply remove it from your trait:

// change this
trait Foo for Sized? {}
// into this
trait Foo {}

[breaking-change]

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 5, 2015
Conflicts:
	src/libserialize/serialize.rs
	src/libstd/c_str.rs
@japaric japaric changed the title Remove uses of for Sized? on traits Obsolete the for Sized? syntax Jan 5, 2015
@alexcrichton
Copy link
Member

I've merged this into a pending rollup (if you want to hold off on a rebase)

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 6, 2015
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
@bors bors merged commit cd4205a into rust-lang:master Jan 6, 2015
@japaric japaric deleted the no-for-sized branch January 22, 2015 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants