Skip to content

Cleanup librustpkg a little bit. #7866

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 1 commit into from

Conversation

mstewartgallus
Copy link
Contributor

Mostly I did simple transformations from imperative style loops to
more functional iterator based transformations.

@thestinger
Copy link
Contributor

@sstewartgallus: seems there's already a conflict

self_id == p.filestem() || do self_id.iter().any |pth| {
// starts_with because p is already normalized
pth.starts_with("rust_") && match p.filestem() {
Some(s) => str::eq_slice(s, pth.slice(5, pth.len())),
Copy link
Member

Choose a reason for hiding this comment

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

This can probably be some s == pth.slice_from(5) (or with s.as_slice(), or the arguments flipped).

@mstewartgallus
Copy link
Contributor Author

Okay, so I made this not fail the tests anymore but to accomplish that I had to revert a little bit of the code that I couldn't figure out. I'm not happy with that but everything else is good, and can go forward.

@emberian
Copy link
Member

emberian commented Aug 8, 2013

@sstewartgallus needs a rebase again :(

@mstewartgallus
Copy link
Contributor Author

Rebased.

Mostly I did simple transformations from imperative style loops to
more functional iterator based transformations.
@mstewartgallus
Copy link
Contributor Author

Rebased again.

bors added a commit that referenced this pull request Aug 13, 2013
Mostly I did simple transformations from imperative style loops to
more functional iterator based transformations.
@bors bors closed this Aug 13, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 4, 2021
…earth

update most tests to 2021 edition

Some tests would no longer work at all, so I added `edition:2015` or `edition:2018` to them.

Notably 2021 panics are not yet detected correctly. Once ready, this closes rust-lang#7842.

---

changelog: none
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