Reimplement C-str literals by fee1-dead · Pull Request #113476 · rust-lang/rust...
source link: https://github.com/rust-lang/rust/pull/113476
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Reimplement C-str literals #113476
Conversation
Member
Collaborator
(rustbot has picked a reviewer for you, use r? to override) |
added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Collaborator
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
This comment has been minimized.
Collaborator
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
Contributor
This sounds like a red flag, and if it is required, then the previous literal prefix future-proofing was probably done incorrectly. |
So in edition > 2021 this will be false and broken? For example edition 2024. |
Member
Author
That flag will be true for 2024. Should I rename? |
Contributor
The future-proofing is correct. If this PR worked consistently with the existing future-proofing check, then it would either:
Both variants may require changes to the lexer, but neither of them requires passing an edition to it. |
Contributor
If this is implemented in lexer (rather than as post-processing in |
Member
Author
I'll try implementing edition-based token combining then. |
Member
Author
implemented edition-based token splitting instead |
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
labels
removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label
added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label
This comment has been minimized.
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
labels
added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
Thanks! |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Contributor
Could you add "Fixes #113333" to the PR description since this PR doesn't need backporting? |
Member
Author
|
Contributor
Test successful - checks-actions |
Collaborator
Finished benchmarking commit (23405bb): comparison URL. Overall result: regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results CyclesResults Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 651.831s -> 651.438s (-0.06%) |
Member
Perf: this is noise @rustbot label: +perf-regression-triaged |
added the perf-regression-triaged The performance regression has been triaged. label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
Reimplement the lexing of c"…"
string literals with backward compatibility in mind
Recommend
-
7
Copy link Member fee1-dead
-
1
New issue Fast reject for NeedsNonConstDrop #88965 Conversation ...
-
1
Copy link Collaborator rust-timer
-
4
Copy link Member fee1-dead commented...
-
6
New issue Constify (most) Option methods #91928
-
5
Conversation Member
-
4
Conversation Member ...
-
7
Conversation Member...
-
2
Effects: don't print host param in diagnostics #114203
-
3
Add Span to TraitBoundModifier #118245
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK