-
-
Notifications
You must be signed in to change notification settings - Fork 157
edition error when running RustEmitIr or Rust EmitAsm #400
Comments
I believe checking edition can be done in a similar way to the example below for rustfmt as explained in null-ls wiki but use it for RustEmitIr or RustEmitAsm functions ( I believe edition can be passed as an argument to rustc )
|
Any progress on this? |
not that I know off. No body even responded yet :( |
I do know that you're right about setting the edition. I'm not even sure how to pass it to the rust tools commands, though. I tried to pass it directly in the language server command, still getting the edition errors. |
I have not looked at how rust-tools implemented . it can be either hard coded or can be read from toml file as in the example how null-ls does. |
Hi
I have been using rust-tool for a while and it is awesome. However some of the commands (that use rustc; e.g RustEmitIr, RustEmitAsm) gives error due to edtion issue if there is an item that is not included in edtion 2015.
Is it possible to read the edition from Cargo.toml file and pass that as an argument to rustc to avoid those errors. Cargo is currently uses edition 2021 as default ;
The text was updated successfully, but these errors were encountered: