dtolnay/cargo-expand

cargo expand: `error: Unrecognized option: 'pretty'`

niklasad1 opened this issue · 2 comments

I don't know whether this is regression on a certain nightly version but it works on older nightly versions FWIW.

➜  $ rustc --version
rustc 1.56.0-nightly (2827db2b1 2021-08-01)
➜  $ cargo +nightly expand --example proc_macro --verbose
     Running `cargo +nightly rustc --profile=check --example proc_macro --verbose --color always -- -o /tmp/cargo-expandpOMOap/expanded -Zunstable-options --pretty=expanded`
error: could not compile `jsonrpsee-examples`

You need to use a newer version of cargo-expand.

Ok, thanks