We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
error[E0537]: invalid predicate `unknown` --> src/test/compile-fail/E0537.rs:11:7 | 11 | #[cfg(unknown())] //~ ERROR E0537 | ^^^^^^^^^^
Currently, we underline a little too much of the predicate. Notice that we underline two ) instead of just the matching )
)
I noticed that E0535 and E0536 also have the same problem
The text was updated successfully, but these errors were encountered:
I think bug in this line https://github.com/rust-lang/rust/blob/master/src/libsyntax/parse/attr.rs#L239 it takes span.hi from unprocessed (current) token. It's can be easy fixed by taking span.lo, but this will work incorrect for spaces between )) . I tried add some spaces but parse failed.
Sorry, something went wrong.
parser has last_span, so just need to change span -> last_span :)
Auto merge of #36354 - mikhail-m1:master, r=jonathandturner
5531c31
fix span for errors E0537, E0535 & E0536 fix #36182 as part of #35233
Successfully merging a pull request may close this issue.
Currently, we underline a little too much of the predicate. Notice that we underline two
)
instead of just the matching)
I noticed that E0535 and E0536 also have the same problem
The text was updated successfully, but these errors were encountered: