File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/tools/rust-analyzer/crates/ide-assists/src/handlers Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -333,16 +333,14 @@ fn f() { !(S <= S || S < S) }
333
333
check_assist ( apply_demorgan, "fn f() { (x ||$0 x) }" , "fn f() { !(!x && !x) }" )
334
334
}
335
335
336
- // FIXME : This needs to go.
337
- // // https://github.com/rust-lang/rust-analyzer/issues/10963
338
- // #[test]
339
- // fn demorgan_doesnt_hang() {
340
- // check_assist(
341
- // apply_demorgan,
342
- // "fn f() { 1 || 3 &&$0 4 || 5 }",
343
- // "fn f() { !(!1 || !3 || !4) || 5 }",
344
- // )
345
- // }
336
+ #[ test]
337
+ fn demorgan_doesnt_hang ( ) {
338
+ check_assist (
339
+ apply_demorgan,
340
+ "fn f() { 1 || 3 &&$0 4 || 5 }" ,
341
+ "fn f() { 1 || !(!3 || !4) || 5 }" ,
342
+ )
343
+ }
346
344
347
345
#[ test]
348
346
fn demorgan_keep_pars_for_op_precedence ( ) {
You can’t perform that action at this time.
0 commit comments