-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustc panic with docopt_macros #28089
Comments
Possibly duplicate of #27848? |
It feels like plugins might be broken on the mac nightly.
|
Possible duplicate of #27271 |
I had to change the code to compile with the latest version of docopt. Here is the code. #![feature(plugin)]
#![plugin(docopt_macros)]
extern crate rustc_serialize;
extern crate docopt;
use docopt::Docopt;
docopt!(Args derive Debug, "
Usage: foo (--help | --version)
Options:
-h, --help Show this message
--version Show the version of foo
");
fn main() {
let args: Args = Args::docopt().decode().unwrap_or_else(|e| e.exit());
println!("{:?}", args);
} [package]
name = "28089"
version = "0.1.0"
authors = [""]
[dependencies]
rustc-serialize = '0.3.16'
docopt = '0.6.75'
docopt_macros = '0.6.75'
|
Hmmmm. Ideas why this would still ICE for me?
I'm using the latest rust nightly binary from https://static.rust-lang.org/dist/rust-nightly-x86_64-apple-darwin.tar.gz (this homebrew formula: https://github.com/nerdrew/homebrew-tap/blob/master/rust-nightly.rb) |
Ok. Using the |
This is probably now working - the latest version of that homebrew formula, with the latest roman numeral example plugin works, but I can't close this issue |
Closing per the above comment. |
Compiling the following
main.rs
withrustc
d877e65 (driven by rust-lang/cargo@1b902d4):I get the following error and backtrace:
This might be a duplicate of one of the "me too" reports on #24819, but I don't think it's a duplicate of originally-reported issue.
The text was updated successfully, but these errors were encountered: