-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
rayon type inference regression #49062
Comments
Same problem as #49043. |
triage: P-high |
So, the ICE should be fixed, but the type inference failure perhaps not. |
Confirmed, no ICE with It still would be nice to root-cause the inference failure from afar, effected by the dependency update. But FWIW I did commit the necessary type annotations to rayon master already. For reproducing the issue, the prior branch head was rayon-rs/rayon@68aabe9e460f. |
@cuviper hmm, i'm not able to reproduce this from that commit. I tried with a recent build and with nightly:
|
Oh, maybe it's testing. |
Yeah, it's with Although I'm not sure anymore if it's correct to call this a regression, or just a mysterious type ambiguity introduced by the dependency updates. Could the compiler give hints with |
OK after some investigation I have successfully reproduced what @cuviper told me the whole time: that is, this is a very long-standing error, but the confusing thing is why the change to compiletest is triggering it. |
triage: P-medium downgrading since ICE has been addressed. The type inference change is potentially interesting and niko wouldlike to track it down, but its not P-high. |
The rayon tests are encountering a new type inference failure, and with the latest nightly, an ICE.
With nightly-2018-03-07, it reports the same "type annotations required" error, but no ICE.
The error itself is new to us, as just a few days ago we had no problem in CI. I narrowed this down to an update to
compilertest_rs
, from 0.3.7 to 0.3.8, even though that crate is not directly involved in the test that has the error. With 0.3.7, even the currently nightly is fine. With 0.3.8, nightly-2018-03-15 has the error and ICE, and nightly-2018-03-07 back to 2018-01-28 just have the error. (Earlier than that, 0.3.8 doesn't compile at all due to differences in thetest
crate.)The text was updated successfully, but these errors were encountered: