-
Notifications
You must be signed in to change notification settings - Fork 27
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
Compiler warnings about bracket #20
Comments
Could you provide the code in question? Not sure what the context is. |
Sure. I have this repository: https://github.com/vertigo-web/vertigo
This part of the program is reporting warnings to me:
|
Looks like this might be a false-positive from the nightly compiler, similar to rust-lang/rust#47775. Can't try with stable compiler since the crate depends on a nightly feature flag it seems. Nice project, good luck with it! |
Oh, and in terms of disabling those as a workaround, |
thank you :)
I tried to switch. The effect is the same. I guess it must depend on the macro somehow. The previous |
Ah, I see. It's probably your implementation of syn-rsx itself doesn't generate code, so it can't generate unnecessary brackets either. |
I think you are right. I will try to solve the problem this way. |
Sounds good. If it works out, feel free to close the issue. 👍 |
It produces such a message:
It appears that the variable block also contains these brackets: |
Yep, |
I had to clear this block of brackets. This solved the problem completely.
Thanks for your help :) |
Dirty but creative 😄 Personally I wouldnt operate directly on the stmts, but if it works for you, even better! |
In the worst case it will not compile :D |
Allow wildcard close tag for block elements
Is it possible to disable these compiler warnings ?
The text was updated successfully, but these errors were encountered: