-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Parser does not stop early enough if keyword is found instead of ident #28439
Comments
Note that neither of these print a
which would be a case if it terminated in properly. |
More:
|
The problem is that Is it safe to change this function interface? |
All functions exposed from the rustc libraries are unstable. |
fixes rust-lang#28439 The signature of public `check_strict_keywords` is changed.
I wonder whether this is a bug or an expected behavior. There is a test fn main() {
struct::foo(); //~ ERROR expected identifier
mut::baz(); //~ ERROR expected identifier
} Looks like reporting two errors here is a good thing. |
Discussed on #28444, and the conclusion was that this is currently intended behavior, so closing as working-as-intended. |
For
and for
2 errors are emitted for each
and
2nd error should not happen.
The text was updated successfully, but these errors were encountered: