-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustpkg: no_rebuilding_dep test failure #9240
Comments
Yes, I'm actually working on this right now. It has to do with timestamp granularity not being fine enough (so I'm rewriting the test to not compare timestamps). |
@catamorphism: I had this same problem in fbuild. I worked around if by comparing hashes if the timestamps were the same. For the tests, I believe I just did something cheesy where I just would do the equivalent of a Another thing you might run into is that I had to put locks in a couple places to make sure that multiple threads didn't stomp on each other. First was a lock around hashing a file to prevent work duplication. Second, I ended up running the database in it's own thread and serialized reads and writes with a queue to protect against multiple threads trying to run the same function at the same time. You can see that code here by looking for any uses of |
This test is enabled now. @erickt My workaround, which Jack suggested, is to make the output file read-only so that if it gets wrongly rebuilt, the operation will fail. I also thought of doing a As for locks, I think workcache takes care of that, but I'll look out for that issue in the future. |
…ers, r=flip1995 Add `extra_unused_type_parameters` lint Closes rust-lang#9240. ~~Keeping this as draft for now, because of a bug that I don't know how to fix.~~ It seems that opaque return types are not walked properly, for some unknown reason. As in, the following: ```rust fn used_ret_opaque<A>() -> impl Iterator<Item = A> { std::iter::empty() } ``` This triggers the lint even though it shouldn't. Discussion on Zulip didn't illuminate any possible reasons why, so PR-ing this now to increase visibility. --- changelog: new lint: [`extra_unused_type_parameters`] [rust-lang#10028](rust-lang/rust-clippy#10028) <!-- changelog_checked -->
My debian x64 fails on
make check
:bors also failed on pr #9211, auto-linux-64-nopt-t build log. (buildbot succeeded after retrial)
The text was updated successfully, but these errors were encountered: