about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-19 13:27:21 +0000
committerbors <bors@rust-lang.org>2024-09-19 13:27:21 +0000
commit814da15d8baf2391f4d19cbc4bf73f81ffbeabdf (patch)
treee75196c516df2025ead9d4ce005588b9febc2efa /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent4ed7f4b5c970d7501f15a147d4cb6d940a8769e2 (diff)
parent65f83e47eeeba62a5eb32deedbc36eee812a1f6a (diff)
downloadrust-814da15d8baf2391f4d19cbc4bf73f81ffbeabdf.tar.gz
rust-814da15d8baf2391f4d19cbc4bf73f81ffbeabdf.zip
Auto merge of #18146 - ChayimFriedman2:allow-comment, r=Veykril
fix: Remove check that text of `parse_expr_from_str()` matches the produced parsed tree

This check is incorrect when we have comments and whitespace in the text.

We can strip comments, but then we still have whitespace, which we cannot strip without changing meaning for the parser. So instead I opt to remove the check, and wrap the expression in parentheses (asserting what produced is a parenthesized expression) to strengthen verification.

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