-
Notifications
You must be signed in to change notification settings - Fork 12.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
Properly print cstr literals in proc_macro::Literal::to_string
#116124
Properly print cstr literals in proc_macro::Literal::to_string
#116124
Conversation
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
proc_macro::Literal::to_string
proc_macro::Literal::to_string
r? @compiler-errors @bors r+ Thanks @WaffleLapkin |
cc @rust-lang/wg-macros since y'all mentioned wanting to be in the loop for libprocmacro-related changes, at least until there is auto-ping group for the WG. |
@@ -1411,7 +1411,15 @@ impl Literal { | |||
let hashes = get_hashes_str(n); | |||
f(&["br", hashes, "\"", symbol, "\"", hashes, suffix]) | |||
} | |||
_ => f(&[symbol, suffix]), |
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.
making macros exhaustively match ❤️
…to-string, r=compiler-errors Properly print cstr literals in `proc_macro::Literal::to_string` Previously we printed the contents of the string, rather than the actual string literal (e.g. `the c string` instead of `c"the c string"`). Fixes rust-lang#112820 cc rust-lang#105723
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
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.
Do you have any idea why the CI is failing with thread 'main' has overflowed its stack
?
Rustdoc overflowed on an unrelated test ( @bors retry |
…to-string, r=compiler-errors Properly print cstr literals in `proc_macro::Literal::to_string` Previously we printed the contents of the string, rather than the actual string literal (e.g. `the c string` instead of `c"the c string"`). Fixes rust-lang#112820 cc rust-lang#105723
💔 Test failed - checks-actions |
@bors treeclosed=100 some bug with |
@bors retry |
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot)
|
@bors treeclosed- |
@compiler-errors does this need a rebase after #116147 or just @bors retry should be enough? |
We're good @bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (a6dce3b): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 630.902s -> 630.463s (-0.07%) |
Previously we printed the contents of the string, rather than the actual string literal (e.g.
the c string
instead ofc"the c string"
).Fixes #112820
cc #105723