bors
2ca8d358e5
Auto merge of #112549 - jieyouxu:fix-tests-for-unit-bindings, r=Nilstrieb
...
Adjust UI tests for `unit_bindings` lint
- Explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead.
- Use `let () = init;` or `let pat = ();` where appropriate.
- Fix disjoint-capture-in-same-closure test which wasn't actually testing a closure: `tests/ui/closures/2229_closure_analysis/run_pass/disjoint-capture-in-same-closure.rs`.
Note that unfortunately there's *a lot* of UI tests, there are a couple of places where I may have left something like `let (): ()` (this is not needed but is left over from an ealier version of the lint) which is bad style.
This PR is to help with the `unit_bindings` lint at #112380 .
2023-06-13 13:07:43 +00:00
..
2023-06-01 18:21:42 +00:00
2023-05-12 00:10:52 +00:00
2023-02-20 12:58:11 +01:00
2023-06-13 13:07:43 +00:00
2023-02-22 08:40:47 -07:00
2023-06-12 20:24:48 +08:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-04-25 19:53:09 +00:00
2023-02-23 10:27:06 -07:00
2023-06-01 18:21:42 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-01 15:45:28 +00:00
2023-05-01 15:45:28 +00:00
2023-01-27 19:26:04 +01:00
2023-01-27 19:26:04 +01:00
2023-03-08 00:12:33 +00:00
2023-03-08 00:12:33 +00:00
2023-03-19 03:45:47 +00:00
2023-03-19 03:45:47 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-02-09 10:26:49 +00:00
2023-02-09 10:26:49 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-01-18 04:07:39 +00:00
2023-02-16 15:14:45 +11:00
2023-05-05 21:42:54 +01:00
2023-06-06 09:37:30 +02:00
2023-06-06 09:37:30 +02:00
2023-06-06 09:37:30 +02:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-01-18 04:07:39 +00:00
2023-02-21 05:21:07 +00:00
2023-06-01 18:21:42 +00:00
2023-02-21 05:21:07 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-03-28 08:39:55 +00:00
2023-03-28 08:39:55 +00:00
2023-01-19 15:39:05 +01:00
2023-02-17 09:32:39 +00:00
2023-04-28 11:56:02 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-06-01 18:21:42 +00:00
2023-05-04 11:22:40 +01:00
2023-05-04 11:22:40 +01:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2023-05-26 16:01:29 +01:00
2023-04-07 11:18:07 -07:00
2023-03-09 20:49:11 +00:00
2023-03-23 19:09:34 +00:00
2023-03-09 20:49:11 +00:00
2023-03-09 20:49:11 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-02-21 05:21:07 +00:00
2023-01-14 15:49:08 +00:00
2023-01-14 15:49:08 +00:00
2023-01-14 15:49:08 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-02-10 14:44:54 +01:00
2023-02-13 18:41:18 +00:00