about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-01 06:25:29 +0000
committerbors <bors@rust-lang.org>2024-09-01 06:25:29 +0000
commitb9872842af9c4ab8b0290e2de3ff3d40b77eb795 (patch)
tree1f1e0e66a1193d2de3d4dcf3020a291b92ec2d07 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent20ed8ce78cb11203f7af7d86fc32bb023fcac8a8 (diff)
parent89a39d918f396c30fe3d0cb8f8f3cf6319736c14 (diff)
downloadrust-b9872842af9c4ab8b0290e2de3ff3d40b77eb795.tar.gz
rust-b9872842af9c4ab8b0290e2de3ff3d40b77eb795.zip
Auto merge of #18015 - ChayimFriedman2:flip-comma-attribute, r=Veykril
Handle attributes correctly in "Flip comma"

Attributes often contain path followed by a token tree (e.g. `align(2)`), and the previous code handled them as two separate items, which led to results such as `#[repr(alignC, (2))]`.

An alternative is to just make the assist unavailable in attributes, like we do in macros. But contrary to macros, attributes often have a fixed form, so this seems useful.

Fixes #18013.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions