You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assist apply_demorgan for a && !(a && b) pointed at second operation produces a && !a || !b which is incorrect because the precedence of || is missed. Or more formally as a test:
#[test]fndemorgan_keep_pars_for_op_precedence1(){check_assist(
apply_demorgan,"fn f() { (a && !(b &&$0 c); }","fn f() { (a && (!b || !c); }",);}
Assist apply_demorgan for
a && !(a && b)
pointed at second operation producesa && !a || !b
which is incorrect because the precedence of||
is missed. Or more formally as a test:Related #15239.
rust-analyzer version: rust-analyzer 1.76.0 (07dca48 2024-02-04)
rustc version: rustc 1.76.0 (07dca489a 2024-02-04)
editor or extension: helix
The text was updated successfully, but these errors were encountered: