[Bug]: marker_uitest
doesn't work in a workspace with rust-toolchain.toml file that uses 1.71
#298
Labels
C-bug
Category: Something isn't working
Summary
I've been integrating marker into my work project. It's been quite seamless so far, but when I started testing my lints I found that a simple
cargo test -p lint-crate
doesn't work. The workspace I have the lint crate defined in uses1.71
stable rust toolchain inrust-toolchain
file.Here is the error that I'm getting
Details
Cause
The problem occurs because the test process is invoked with both the
RUSTUP_TOOLCHAIN
andLD_LIBRARY_PATH
that point to the1.71.0
toolchain in this case. Themarker_uitest
needs to make sure to ignore these variables by invoking the driver viarustup run {marker-nightly-toolchain} marker_rustc_driver
command.Workaround
I've come up with a workaround for this issue, but I'd like this to be fixed in
marker_uitest
.Reproducer
Create a file
rust-toolchain
with1.71.0
inside of it.Initialize an dummy lint crate inside of the workspace.
Use the following code for the sample lint crate in
tests/uitest.rs
file:Run
cargo test
Version
The text was updated successfully, but these errors were encountered: