-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Function call with attributes on arguments fail to parse #2521
Comments
I think this needs some research. The main question is where the arguments are paced: on the expresison, or on the function argument? Ie, if The former case should be easy-ish to fix, the latter might be more involved. |
The second case does seem to be allowed: playground link example, running in debug/release passes different sized tuples to the function |
Aha, here's the list where we should allow attributes on the expressions:
https://doc.rust-lang.org/reference/expressions.html#expression-attributes
…On Wed, 11 Dec 2019 at 14:06, Wesley Norris ***@***.***> wrote:
The second case does seem to be allowed: playground link example
<https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=7b46482e93686158ef7f00bf42b1231a>,
running in debug/release passes different sized tuples to the function
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2521>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANB3MZ4D7KI5ZHPMXQA65TQYDQT7ANCNFSM4JZGPWRA>
.
|
Any progress? |
I just ran into a problem with r-a not parsing the function call when I have something like this
(r-a says it expects an expression, not attribute)
#1661 fixed the attributes when put on parameters, but not when calling functions with attributes on the arguments.
I did a test with adding
AttrsOwner
toExpr
in the grammar file and that fixed it, but I'm not sure if that's the way to go or not. I could write up a quick PR if its something simple enough that though :)The text was updated successfully, but these errors were encountered: