-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix most warnings in tests #26626
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
Fix most warnings in tests #26626
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (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 the contribution instructions for more information. |
@bors: r+ 2106e003f7adf403178be9eb41be2b8e7ad57961 Certainly a great step forward, thanks!
You should be able to add |
⌛ Testing commit 2106e00 with merge e5a9d69... |
💔 Test failed - auto-mac-64-opt |
2106e00
to
257212a
Compare
@bors: try |
⌛ Testing commit 257212a with merge a497482... |
💔 Test failed - auto-win-gnu-64-opt |
@bors: retry |
⌛ Testing commit 257212a with merge 150358a... |
💔 Test failed - auto-linux-64-x-android-t |
☔ The latest upstream changes (presumably #26631) made this pull request unmergeable. Please resolve the merge conflicts. |
Hey @cristicbz, this seems to need a rebase. 😄 |
Ah yes, sorry this fell through the cracks. I'm struggling a bit to repro the failed tests though. Is running |
Don't worry! It feel through my cracks too. The build-bots do |
@cristicbz feel free to push up changes you think work and we can run them on our try servers for you. |
@cristicbz it's been a long time, are you still interested in fixing up this PR, or should we close it? |
Sorry about this, I'll close it. I might have a new, more focused go when I get more time, I've just been utterly swamped for the last few months or so :( |
Completely understood, happens to us all. Good luck with things! |
This PR attempts to fix most warnings spewed by running
make check
:#[allow(deprecated)]
attributes to tests which test deprecated code:unfoldr
,BufStream
,RandomAccessIterator
,reverse_in_place
,thread::scoped
.#[cfg(not(test))]
to places like primitive inherent impls where, AFAIU, where at test time the impls themselves are not requried since they are already provied by thelibstd
crate against which we link.Thunk
toFnBox
inremutex.rs
and gets rid ofthread::scoped
.After these changes, I still get some warnings, which I find really strange:
sync::future
the tests throw deprecation warnings despite the toplevel module attribute allowing deprecation. Weird.Future
deprecation, but target at libstd/lib.rs line 1 column 1:#[cfg(not(test))]
for the feature be helpful?