Skip to content

error: Unrecognized option: 'Help' #11729

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

Closed
abhaykadam opened this issue Jan 22, 2014 · 1 comment · Fixed by #11737
Closed

error: Unrecognized option: 'Help' #11729

abhaykadam opened this issue Jan 22, 2014 · 1 comment · Fixed by #11737

Comments

@abhaykadam
Copy link

getting unexpected failure on OS X 10.9.1 when some random option is passed to rustc.

my rustc session was:

$ rustc --Help
error: Unrecognized option: 'Help'.
error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
task 'rustc' failed at 'explicit failure', /Users/abhay/devel/rust/rust/src/librustc/driver/driver.rs:1137

and rustc -v returns:

$ rustc -v
rustc 0.10-pre (750d48b 2014-01-22 00:51:20 -0800)
host: x86_64-apple-darwin
@pnkfelix
Copy link
Member

At the very least, the "Unrecognized option" error message should include some mention of the --help option to get a usage help message.

arcnmx pushed a commit to arcnmx/rust that referenced this issue Jan 9, 2023
…=Veykril

fix: don't let mbe expr fragments match let exprs and inline consts

Fixes rust-lang#11729

`expr` fragment in mbe should not match let expressions and inline consts for backwards compatibility. See rust-lang#86730 for details.

This patch is porting [this logic in rustc](https://github.com/rust-lang/rust/blob/f0c4da49983aa699f715caf681e3154b445fb60b/compiler/rustc_parse/src/parser/nonterminal.rs#L28-L34) (which is called [here in rustc's mbe engine](https://github.com/rust-lang/rust/blob/f0c4da49983aa699f715caf681e3154b445fb60b/compiler/rustc_expand/src/mbe/macro_parser.rs#L576)) to our mbe engine.
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

Successfully merging a pull request may close this issue.

2 participants