Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look for a nightly compiler #10

Closed
dtolnay opened this issue Feb 14, 2017 · 2 comments
Closed

Look for a nightly compiler #10

dtolnay opened this issue Feb 14, 2017 · 2 comments

Comments

@dtolnay
Copy link
Owner

dtolnay commented Feb 14, 2017

$ rustup run stable cargo expand >/dev/null

  warning: the option `Z` is unstable and should only be used on the nightly
    compiler, but it is currently accepted for backwards compatibility; this
    will soon change, see issue #31847 for more details
  warning: the option `pretty` is unstable and should only be used on the nightly
    compiler, but it is currently accepted for backwards compatibility; this
    will soon change, see issue #31847 for more details

Let's run rustc --version and rustup run nightly rustc --version and choose the one that provides a nightly compiler.

If neither is nightly, keep the current behavior with warnings.

@ehuss
Copy link
Collaborator

ehuss commented Jul 25, 2017

Note: as of Rust 1.19 you must use nightly in order for cargo expand to work.

I'm curious if you have any thoughts about the future of cargo expand. In rust-lang/rust#31847 it is mentioned that --pretty is broken and may be removed or replaced.

@dtolnay
Copy link
Owner Author

dtolnay commented May 15, 2018

Fixed in db455ab.

@dtolnay dtolnay closed this as completed May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants