Skip to content
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 uitest fails when project path has whitespaces #9874

Open
vxpm opened this issue Nov 18, 2022 · 1 comment
Open

cargo uitest fails when project path has whitespaces #9874

vxpm opened this issue Nov 18, 2022 · 1 comment
Labels
C-bug Category: Clippy is not doing the correct thing

Comments

@vxpm
Copy link
Contributor

vxpm commented Nov 18, 2022

Summary

calling cargo uitest when rust-clippy's path has whitespaces makes all tests fail. for example, if rust-clippy's path is C:\rust whitespace\rust-clippy, it will emit the following for every test (test_name):

error: multiple input filenames provided (first two filenames are `tests\\ui\\test_name.rs` and `whitespace\\rust-clippy\\target\\debug\\deps` 

(notice the second path is incomplete and begins right after the whitespace in the full path)

putting rust-clippy somewhere with no whitespaces on it's path solves the issue (however, a cargo clean seems to be necessary for it do so, for some reason).

Reproducer

I tried: calling cargo uitest.
I expected to see this happen: tests run correctly.
Instead, this happened: all tests fail with the aforementioned error as their output.

Version

rustc 1.66.0-nightly (4b8f43199 2022-10-19)
binary: rustc
commit-hash: 4b8f4319954ff2642690b9e5cbe4af352d095bf6
commit-date: 2022-10-19
host: x86_64-pc-windows-msvc
release: 1.66.0-nightly
LLVM version: 15.0.2

Additional Labels

No response

@vxpm vxpm added the C-bug Category: Clippy is not doing the correct thing label Nov 18, 2022
@Alexendoo
Copy link
Member

Would need rust-lang/rust#103266 or to port the fix (rust-lang/rust#102634) to compiletest_rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Clippy is not doing the correct thing
Projects
None yet
Development

No branches or pull requests

2 participants