rust-tools.nvim icon indicating copy to clipboard operation
rust-tools.nvim copied to clipboard

cargo's toolchain uses default instead of overridden toolchain of project

Open darklyspaced opened this issue 2 years ago • 1 comments

when invoked from a dir for which the default toolchain has been overridden using rustup override set stable, the default toolchain is still used for the cargo check.

i'm pretty sure that this issue lies in rust-tools itself and not rust-analyzer, though i might be mistaken. idk how the toolchain is chosen. if it lies in rust-analyzer itself, i'll create another issue up the chain.

darklyspaced avatar Aug 18 '23 13:08 darklyspaced

i am on the same boat here, if the root of the project has a rust-toolchain file, i get a rust-analyzer: proc 'main' not expaned: proc macro crate is missing dylib, but if i remove that file, it seems good, wonder if there is a fix for this

jason-shen avatar Nov 15 '23 17:11 jason-shen