Yuki Okushi
5b43960687
Rollup merge of #87727 - SkiFire13:fix-87718, r=jackh726
...
explicit_generic_args_with_impl_trait: fix min expected number of generics
Fixes #87718
The problem was that `synth_type_param_count` was already subtracted from `named_type_param_count`, so this ended up being subtracted again. This caused `expected_min` to overflow, and ultimately resulting in weird and wrong behaviour.
I've also added another test not present in the original issue but caused by the same bug.
2021-08-06 11:21:30 +09:00
..
2021-07-29 14:56:05 -07:00
2021-07-29 14:56:05 -07:00
2021-07-29 14:56:05 -07:00
2021-08-02 05:49:17 +00:00
2021-08-02 09:36:54 -05:00
2021-07-29 14:56:05 -07:00
2021-08-02 05:49:17 +00:00
2021-08-03 07:06:19 -07:00
2021-07-29 14:56:05 -07:00
2021-08-03 16:58:56 +00:00
2021-08-04 15:51:30 +02:00
2021-08-05 00:11:05 +00:00
2021-07-29 14:56:05 -07:00
2021-08-02 05:49:17 +00:00
2021-08-06 11:21:29 +09:00
2021-08-05 23:08:29 +02:00
2021-08-03 10:40:52 -07:00
2021-08-03 07:06:19 -07:00
2021-07-29 14:56:05 -07:00
2021-07-29 14:56:05 -07:00
2021-08-02 05:49:17 +00:00
2021-08-02 05:49:17 +00:00
2021-07-29 14:56:05 -07:00
2021-07-29 14:56:05 -07:00
2021-08-03 20:05:50 +09:00
2021-07-29 14:56:05 -07:00
2021-08-02 05:49:17 +00:00
2021-08-04 07:17:25 +00:00
2021-08-04 07:17:25 +00:00
2021-08-04 15:51:30 +02:00
2021-08-02 05:49:17 +00:00
2021-07-29 14:56:05 -07:00
2021-08-04 21:09:53 +00:00
2021-08-04 21:09:53 +00:00
2021-08-05 14:45:09 +00:00
2021-08-04 07:17:25 +00:00
2021-07-29 14:56:05 -07:00
2021-08-04 15:30:10 -04:00
2021-07-29 14:56:05 -07:00
2021-08-04 02:04:04 +00:00
2021-08-03 16:58:56 +00:00
2021-08-02 05:49:17 +00:00
2021-08-02 05:49:17 +00:00
2021-08-04 02:04:04 +00:00
2021-07-29 14:56:05 -07:00
2021-08-05 23:08:29 +02:00
2021-08-03 04:50:28 +00:00
2021-08-02 05:49:17 +00:00
2021-08-02 05:49:17 +00:00
2021-08-03 19:48:54 +00:00
2021-08-02 05:49:17 +00:00
2021-07-29 14:56:05 -07:00
2021-07-29 14:56:05 -07:00
2021-08-06 11:21:30 +09:00