rust/crates/syntax
bors 7ca45dcf04 Auto merge of #15410 - alibektas:15240/invalid-demorgan, r=Veykril
internal : rewrite DeMorgan assist

fixes #15239 , #15240 . This PR is a rewrite of the DeMorgan assist that essentially rids of all the string manipulation and modifies syntax trees to apply demorgan on a binary expr. The main reason for the rewrite is that I wanted to use `Expr::needs_parens_in` method to see if the expr on which the assist is applied would still need the parens it had once the parent expression's operator had equal precedence with that of the expression. I used `.clone_(subtree|for_update)` left and right and probably more than I should have, so I would also be happy to hear how I could have prevented redundant cloning.
2023-08-15 07:29:28 +00:00
..
fuzz fix(fuzz): Fixes broken Cargo.toml for fuzz tests 2023-01-24 10:54:10 -08:00
src Auto merge of #15410 - alibektas:15240/invalid-demorgan, r=Veykril 2023-08-15 07:29:28 +00:00
test_data Spelling 2023-04-19 09:45:55 -04:00
Cargo.toml Upgrade to indexmap v2 2023-06-24 17:35:20 -07:00
rust.ungram fix: Expand eager macros to delimited comma separated expression list 2023-07-30 17:31:26 +02:00