-
Notifications
You must be signed in to change notification settings - Fork 13.3k
test: reproduce the issue with the cstr parsing inside a the proc macro #116103
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
test: reproduce the issue with the cstr parsing inside a the proc macro #116103
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
bf7e3ea
to
0a8139e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
@bors r+ rollup |
Shouldn't this test be asserting that Also, I have no idea why this needs to be committed as a separate test. The fix should be a minor fix to the proc macro library to handle cstrings correctly. |
tests/ui/rfcs/rfc-3348-c-string-literals/auxiliary/wrong_parsing.rs
Outdated
Show resolved
Hide resolved
@bors r- please fix the test so that it will eventually work when |
0a8139e
to
97a7ed2
Compare
While I am working on trying to patch rust-lang#112820 I think it is useful to have a test for this case as known-bug Signed-off-by: Vincenzo Palazzo <[email protected]>
97a7ed2
to
1ed2743
Compare
Thanks @compiler-errors for the catch! I push the correct version now.
Currently macros have a working group and this issue should be discussed before inside the wg and then patched as you suggested. All the macros change will require at least one review from the wg due to that claim that we did inside the MCP. Due to the original issue, there was some attempt (maybe) to solve the issue with cstr (See #112820 (comment)) I wrote a test to confirm it. Now this may be not useful, but IMHO it will be for the next person who will patch this issue and will find the test. As a plus, this commit will be here anyway due the patch should include the UI test. |
@vincenzopalazzo I went ahead and opened a fix for the issue: #116124. Sorry for taking an issue you've been working on, but it looked like you did not made progress since June, while the issue is easy to fix, so it seemed better to just fix it right away. In general, please remove your assignment or ask for help if you are struggling to fix an issue. This way the issue won't be stalling — either you'll get help and be able to make progress, or someone else will take a stab at fixing it. |
I need to apologize to @compiler-errors for saying the following statement and everyone that understand tha I wanted to impose my review of one review of the wg on each PR
In my message, I used the term required drawing a parallel to how the diagnostic working group is consulted for every change in their subsystem (though it might not be a perfect comparison, as I don't think there's an example quite like the macros working group). They can voice their opinions on changes. If they feel the need to reject a change, they can discuss it directly in the PR. That was my original intent behind using the word "required". It seems I might have chosen an imprecise term. In addition due that I am mentioned the MCP, the MCP statement that I am referring to is:
To me, this suggests that, at a minimum, we should be notified within the PR to review it. This offers us the opportunities to:
To clarify, my main point was simply that our working group serves as a hub for individuals eager to work on this aspect of the compiler, especially when there's limited interest or availability from others. I never intended to present our group as the sole experts, but merely as dedicated contributors. This might seem evident, but it underscores why we are a working group and not an independent team. We aim to operate under the guidance of the t-compiler, hoping that our efforts, past and future, on the macros subsystem won't go unnoticed. thanks @WaffleLapkin for the patch, I had a similar version on https://git.hedwing.dev/vincenzopalazzo/rust Happy that we converge on it |
While I am working on trying to patch #112820
I think it is useful to have a test for this case as known-bug