-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cargo clippy crashes in root of workspace #2105
Comments
I cannot reproduce. On which crate are you running it and from which directory? |
The output of env RUST_BACKTRACE=1 cargo +nightly clippy --all does not fail in the same way. |
So I'm assuming the How are the other crates positioned relative to it? We have a workspace test for
And that works from both directories + any subdirectory of either. |
I'm getting this too, in github.com/radix/pandt. I'm using windows 10 and running it from the root of the repository.
|
I wrote a fun comment:
So... I was wrong. I don't know why yet, though. |
@oli-obk: I have |
Just ran into this crash myself. My (complete!) workspace Cargo.toml looked something like this:
Since @oli-obk said that there was a workspace test, I looked at that and found that the test workspace had a
|
You can also reproduce it with: % git clone https://github.com/hashmismatch/packed_struct.rs
% cd packed_struct.rs
% cargo clippy
thread 'main' panicked at 'could not find parent of path /', src/main.rs:124:48
note: Run with `RUST_BACKTRACE=1` for a backtrace. |
Looks like this is fixed with 0.0.191 (possibly in #2585). I'm going ahead and close this because the offending code has been removed and is now handled by @sanmai-NL Feel free to re-open if you still get this crash with 0.0.191. |
Meta
See also #1515
The text was updated successfully, but these errors were encountered: