bors cf1e2e9c1c Auto merge of #8612 - SabrinaJewson:suggest-from-utf8-unchecked-in-const, r=flip1995
Suggest from_utf8_unchecked in const contexts

Unfortunately I couldn't figure out how to check whether a given expression is in an `unsafe` context or not, so I just unconditionally emit the wrapping `unsafe {}` block in the suggestion. If there is an easy way to get it to work better then I would love to hear it.

changelog: Suggest `from_utf8_unchecked` instead of `from_utf8` in const contexts for ``[`transmute_bytes_to_str`]``

refs: #8379
2022-04-06 09:32:51 +00:00
..
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2022-03-28 04:48:12 -04:00
2022-03-30 20:12:58 +02:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2021-12-13 17:09:16 +00:00
2022-03-27 21:49:38 +08:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-02-24 22:55:40 +03:00
2022-02-24 22:55:40 +03:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2021-12-13 00:00:51 +00:00
2021-12-13 00:00:51 +00:00
2022-03-30 20:12:58 +02:00
2022-03-02 19:20:27 -05:00
2022-03-30 20:13:16 +02:00
2022-03-30 20:13:16 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-26 15:48:17 -03:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2021-12-12 12:34:21 +00:00
2021-12-12 12:34:21 +00:00
2022-03-28 12:09:01 +08:00
2022-03-28 12:09:01 +08:00
2022-03-28 12:09:01 +08:00
2022-03-24 13:18:18 +01:00
2022-03-24 13:18:18 +01:00
2022-03-24 13:18:18 +01:00
2022-03-05 21:18:44 -05:00
2022-03-05 21:18:44 -05:00
2022-03-05 21:18:44 -05:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00
2022-03-30 20:12:58 +02:00