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

Parse errors not reported sometimes inside --cfg option #89358

Closed
mwkmwkmwk opened this issue Sep 29, 2021 · 0 comments · Fixed by #89468
Closed

Parse errors not reported sometimes inside --cfg option #89358

mwkmwkmwk opened this issue Sep 29, 2021 · 0 comments · Fixed by #89468
Labels
C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@mwkmwkmwk
Copy link
Contributor

I tried this command:

rustc --cfg "abc\""

(note the lone stray quote passed at the end of the argument)

I expected to see this happen:

error: invalid `--cfg` argument: `abc"` (expected `key` or `key="value"`)

Instead, this happened: rustc exits with code 1, but with no output on stderr or stdout

Meta

rustc --version --verbose:

rustc 1.55.0 (c8dfcfe04 2021-09-06)
binary: rustc
commit-hash: c8dfcfe046a7680554bf4eb612bad840e7631c4b
commit-date: 2021-09-06
host: x86_64-unknown-linux-gnu
release: 1.55.0
LLVM version: 12.0.1

(but, same on current nightly)

@mwkmwkmwk mwkmwkmwk added the C-bug Category: This is a bug. label Sep 29, 2021
@estebank estebank added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 29, 2021
@bors bors closed this as completed in 0f81c7f Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants