Skip to content

Collections cleanup #21969

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

Closed
wants to merge 3 commits into from
Closed

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Feb 5, 2015

This is 99% burning ints to the ground, but I also got rid of useless annotations or made code more "idiomatic" as I went along. Mostly changes in tests.

@rust-highfive
Copy link
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -812,22 +812,22 @@ impl<T> SliceExt for [T] {
}

#[inline]
fn slice<'a>(&'a self, start: uint, end: uint) -> &'a [T] {
fn slice<'a>(&'a self, start: usize, end: usize) -> &'a [T] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these lifetimes (and the corresponding ones on similar methods) can be elided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, I wasn't checking for that.

@Gankra Gankra force-pushed the collections-cleanup branch from 84ddc78 to 1be0dc0 Compare February 5, 2015 18:29
@Gankra
Copy link
Contributor Author

Gankra commented Feb 5, 2015

@apasel422 I did a quick pass to remove a bunch of useless lifetimes.

@Gankra Gankra force-pushed the collections-cleanup branch from acd338e to 22e6a36 Compare February 5, 2015 19:10
@apasel422
Copy link
Contributor

@gankro Awesome. Looks good to me!

@alexcrichton
Copy link
Member

Nice work @gankro, thanks!

Can you also remove the int_uint feature from libcollections/lib.rs while you're at it? Otherwise r=me

@Gankra
Copy link
Contributor Author

Gankra commented Feb 5, 2015

Oh hey, that shows me all the places I missed. Sweet. New commit with all the missed stuff.

@alexcrichton
Copy link
Member

@bors: r+ 9e8aaf2

@Gankra Gankra force-pushed the collections-cleanup branch from 9e8aaf2 to 15fb06d Compare February 5, 2015 23:25
@Gankra
Copy link
Contributor Author

Gankra commented Feb 5, 2015

@bors r=alexcrichton 15fb06 p=1

(want to fast track since it's merge-conflicty)

@Gankra Gankra force-pushed the collections-cleanup branch from 15fb06d to 21f499c Compare February 6, 2015 01:22
@Gankra
Copy link
Contributor Author

Gankra commented Feb 6, 2015

@bors r=alexcrichton 21f49 p=1

@Gankra
Copy link
Contributor Author

Gankra commented Feb 6, 2015

@bors p=0

@Manishearth's rollup'll handle this

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 6, 2015
…richton

 This is 99% burning ints to the ground, but I also got rid of useless annotations or made code more \"idiomatic\" as I went along. Mostly changes in tests.
@pnkfelix
Copy link
Member

pnkfelix commented Feb 6, 2015

Hmm, I think removing the int_uint feature may be what caused the latest rollup attempt on #21969 to fail, see : http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/3485/steps/test/logs/stdio

cc @Manishearth

@Manishearth
Copy link
Member

Wait, I fixed those errors. Hm

@Manishearth
Copy link
Member

Ah, I hadn't run doctests

@Gankra
Copy link
Contributor Author

Gankra commented Feb 6, 2015

Oh whoops, I killed my tests before doctests ran.

@Gankra Gankra closed this Feb 7, 2015
@Gankra
Copy link
Contributor Author

Gankra commented Feb 7, 2015

Merged in rollup with some extra patches

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.

7 participants