about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-09-19 14:18:07 +0300
committerChayim Refael Friedman <chayimfr@gmail.com>2024-09-19 14:18:07 +0300
commit65f83e47eeeba62a5eb32deedbc36eee812a1f6a (patch)
tree1094c574a0ee92cc5bf2a9049ade36a9a4be0119 /compiler/rustc_codegen_llvm/src/errors.rs
parentee38991676679140d37bc9ecb1532683a7e9cff6 (diff)
downloadrust-65f83e47eeeba62a5eb32deedbc36eee812a1f6a.tar.gz
rust-65f83e47eeeba62a5eb32deedbc36eee812a1f6a.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions