-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Can't build ripgrep with cargo nightly #4287
Comments
Using bisect-rust I managed to narrow down the regression to this commit range (rust PR rust-lang/rust#43207): cc @matklad |
Earlier When I arrive, I'll publish a new bytecount version. Sorry for the inconvenience. |
Huh, turns out the actual cause is #3947 from April, and #4259 only exposed it. In #3947 we've intentionally removed @alexcrichton, a question: suppose we have a target in The current behavior is to evaluate explicit paths lazily, but bail early for implicit paths. That is, if you have |
So we need to fix it in Cargo somehow, because Option 1: allow "src/bench.rs" with a warning. This basically tonnes down #3947 (when accessing impact of that PR, I've search for Option 2: restore the behavior of warning about missing targets only during compilation of said targets. This could be implemented by fallback to some default path, like Option 3: use the same trick for missing targets as we do for warnings: show error only if you are compiling the crate itself, and hide errors for dependencies. I find the first option most compelling, because it's the simplest one, although it seems like a funny step backwards from #3947. |
The #4288 PR implements the first option. |
Thanks @matklad for fixing! |
Thank you @est31 for bisecting and finding out who's to blame :) It made fixing the issue so much easier! |
Doing this on nightly:
Gives you an error:
On beta everything is fine.
cc @BurntSushi @llogiq
The text was updated successfully, but these errors were encountered: