Properly print cstr literals in proc_macro::Literal::to_string#116124
Properly print cstr literals in proc_macro::Literal::to_string#116124bors merged 2 commits intorust-lang:masterfrom
proc_macro::Literal::to_string#116124Conversation
|
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
proc_macro::Literal::to_stringproc_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. |
| let hashes = get_hashes_str(n); | ||
| f(&["br", hashes, "\"", symbol, "\"", hashes, suffix]) | ||
| } | ||
| _ => f(&[symbol, suffix]), |
There was a problem hiding this comment.
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) |
vincenzopalazzo
left a comment
There was a problem hiding this comment.
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 stringinstead ofc"the c string").Fixes #112820
cc #105723