-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Conversation
@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())), |
There was a problem hiding this comment.
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).
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. |
@sstewartgallus needs a rebase again :( |
Rebased. |
Mostly I did simple transformations from imperative style loops to more functional iterator based transformations.
Rebased again. |
Mostly I did simple transformations from imperative style loops to more functional iterator based transformations.
…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
Mostly I did simple transformations from imperative style loops to
more functional iterator based transformations.