Files
rust/tests/ui
Michael Wright 750a2d57bd Fix unnecessary_to_owned false positive
Fixes #9351.

Note that this commit reworks that fix for #9317. The change
is to check that the type implements `AsRef<str>` before regarding
`to_string` as an equivalent of `to_owned`. This was suggested
by Jarcho in the #9317 issue comments.

The benefit of this is that it moves some complexity out of
`check_other_call_arg` and simplifies the module as a whole.
2022-09-03 17:00:44 +02:00
..
2022-09-01 23:23:56 +02:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2020-11-08 18:32:12 -05:00
2021-08-11 14:21:33 +00:00
2020-01-07 18:38:12 +09:00
2019-12-21 16:20:30 +01:00
2022-06-16 18:00:32 +04:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2022-06-16 18:00:32 +04:00
2022-06-16 15:51:12 +03:00
2021-08-11 14:21:33 +00:00
2020-01-12 19:54:17 +08:00
2020-01-12 19:54:17 +08:00
2021-08-11 14:21:33 +00:00
2021-12-13 17:09:16 +00:00
2020-01-07 18:38:12 +09:00
2019-12-24 03:06:52 +07:00
2019-12-24 03:06:52 +07:00
2020-11-08 18:32:12 -05:00
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2021-08-11 14:21:33 +00:00
2022-06-16 18:00:32 +04:00
2021-08-11 14:21:33 +00:00
2022-06-16 15:51:12 +03:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2022-06-16 15:51:12 +03:00
2020-01-07 18:38:12 +09:00
2021-08-11 14:21:33 +00:00
2020-04-26 18:00:51 +03:00
2020-01-07 18:38:12 +09:00
2019-12-31 09:22:35 -08:00
2021-08-11 14:21:33 +00:00
2022-07-16 20:17:58 -03:00
2022-07-16 20:17:58 -03:00
2022-07-16 20:17:58 -03:00
2021-08-11 14:21:33 +00:00
2021-08-11 14:21:33 +00:00
2020-01-26 07:01:16 +09:00
2020-01-07 18:38:12 +09:00
2022-08-21 10:24:30 +02:00
2022-06-16 15:51:12 +03:00
2022-06-16 15:51:12 +03:00
2019-12-18 18:59:43 +02:00
2022-08-16 18:34:51 -04:00
2022-08-16 18:34:51 -04:00
2020-09-10 15:23:38 +02:00
2021-12-12 12:34:21 +00:00
2021-12-12 12:34:21 +00:00
2020-11-08 18:32:12 -05:00
2021-07-27 16:26:50 -04:00
2021-07-27 16:26:50 -04:00
2019-11-25 18:12:52 +03:00
2019-11-25 18:12:52 +03:00
2020-01-07 18:38:12 +09:00
2022-08-16 15:53:01 -04:00
2022-08-16 15:53:01 -04:00
2019-12-27 22:07:55 +09:00
2019-12-27 22:07:55 +09:00
2021-03-03 11:23:29 +01:00
2021-08-11 14:21:33 +00:00
2022-06-16 18:00:32 +04:00
2021-08-11 14:21:33 +00:00
2020-01-07 18:38:12 +09:00
2022-04-17 11:03:34 +02:00
2022-08-16 18:34:51 -04:00
2020-03-10 18:00:37 -04:00
2022-06-16 15:51:12 +03:00
2022-06-16 15:51:12 +03:00
2022-06-16 15:51:12 +03:00