Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvariantLifetime is Copy-able #19838

Merged
merged 1 commit into from
Dec 22, 2014

Conversation

shepmaster
Copy link
Member

Both ContravariantLifetime and CovariantLifetime are marked as Copy,
so it makes sense for InvariantLifetime to be as well.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see CONTRIBUTING.md for more information.

bors added a commit that referenced this pull request Dec 14, 2014
InvariantLifetime is Copy-able

Reviewed-by: alexcrichton
bors referenced this pull request Dec 16, 2014
This creates an enormous amount of spew.
bors added a commit that referenced this pull request Dec 16, 2014
InvariantLifetime is Copy-able

Reviewed-by: alexcrichton
bors referenced this pull request Dec 16, 2014
Using a type alias for iterator implementations is fragile since this
exposes the implementation to users of the iterator, and any changes
could break existing code.

This commit changes the iterators of `VecMap` to use
proper new types, rather than type aliases.  However, since it is
fair-game to treat a type-alias as the aliased type, this is a:

[breaking-change].
bors added a commit that referenced this pull request Dec 16, 2014
InvariantLifetime is Copy-able

Reviewed-by: alexcrichton
brson added a commit that referenced this pull request Dec 16, 2014
Both ContravariantLifetime and CovariantLifetime are marked as Copy,
so it makes sense for InvariantLifetime to be as well.
bors added a commit that referenced this pull request Dec 17, 2014
InvariantLifetime is Copy-able

Reviewed-by: alexcrichton
@vhbit
Copy link
Contributor

vhbit commented Dec 17, 2014

@alexcrichton @shepmaster considering #19913 wouldn't it be more consistent to use #[deriving(Copy)] here too?

@shepmaster
Copy link
Member Author

@vhbit I think your link isn't quite right...

@vhbit
Copy link
Contributor

vhbit commented Dec 17, 2014

@shepmaster hmm, sorry, seems I've copied the wrong one, I've meant #19867

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 17, 2014
Both ContravariantLifetime and CovariantLifetime are marked as Copy,
so it makes sense for InvariantLifetime to be as well.
@shepmaster
Copy link
Member Author

Hmm, it probably would make more sense. I'll go ahead and change mine, seeing as how the other PR has traction.

@shepmaster shepmaster force-pushed the invariant-lifetime-copy branch from 5966815 to 1dad206 Compare December 17, 2014 23:28
@shepmaster
Copy link
Member Author

@alexcrichton modified to use deriving, rebased on latest master, and squashed. r?

@alexcrichton
Copy link
Member

Ah sorry this ended up already getting merged into the rollup, could you rebase to delete the manual impl now?

@shepmaster shepmaster force-pushed the invariant-lifetime-copy branch from 1dad206 to 1afa8ac Compare December 18, 2014 00:05
@shepmaster
Copy link
Member Author

@alexcrichton done and done! Thanks for getting this in for me; maybe my Travis builds will build now :-)

@alexcrichton
Copy link
Member

Thanks!

bors added a commit that referenced this pull request Dec 19, 2014
InvariantLifetime is Copy-able

Reviewed-by: alexcrichton
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 21, 2014
Both ContravariantLifetime and CovariantLifetime are marked as Copy,
so it makes sense for InvariantLifetime to be as well.
@bors bors merged commit 1afa8ac into rust-lang:master Dec 22, 2014
@shepmaster shepmaster deleted the invariant-lifetime-copy branch December 22, 2014 17: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.

6 participants