Skip to content

adjust trait bound for with_clone::Any#20

Closed
blaenk wants to merge 1 commit intochris-morgan:masterfrom
blaenk:reflect
Closed

adjust trait bound for with_clone::Any#20
blaenk wants to merge 1 commit intochris-morgan:masterfrom
blaenk:reflect

Conversation

@blaenk
Copy link

@blaenk blaenk commented Apr 6, 2015

I believe the new std::marker::Reflect trait made it necessary to
specify a Reflect bound, but it's advised to use an Any bound instead.

Adding this bound makes it compile. I ran the tests and got an error
saying it couldn't determine the type of one of the expressions so I
introduced a scope to bind the result of the expression and annotate its
type.

I also removed the convert feature that was no longer needed.

I believe the [new] std::marker::[Reflect] trait made it necessary to
specify a Reflect bound, but it's advised to use an Any bound instead.

Adding this bound makes it compile. I ran the tests and got an error
saying it couldn't determine the type of one of the expressions so I
introduced a scope to bind the result of the expression and annotate its
type.

I also removed the `convert` feature that was no longer needed.

[new]: rust-lang/rust#23712
[Reflect]: http://doc.rust-lang.org/std/marker/trait.Reflect.html
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.

2 participants