dtolnay/cargo-expand

I could not run `cargo expand` while I on the nightly rust env

emadbaqeri opened this issue · 4 comments

Hey there, I'm trying to run cargo expand on one of my projects, the problem is it is blaming that the compiler needs to be the nightly version.
This is the error:

error: the option `Z` is only accepted on the nightly compiler
error: could not compile `dummy_project`

This is the output of rustup show:

Default host: aarch64-apple-darwin
rustup home:  /Users/emad/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin
nightly-aarch64-apple-darwin (default)

active toolchain
----------------

nightly-aarch64-apple-darwin (default)
rustc 1.63.0-nightly (1f34da9ec 2022-06-14)

Any idea on this?

I can't look into this, but if you track this down and figure out a code fix or documentation fix, I would be happy to accept it.

Hey @dtolnay, I will take look into it in my down time

I am also having this issue