Michael Goulet 61c776ae0a
Rollup merge of #119638 - lukas-code:suggest-constructor-cycle-error, r=cjgillot
fix cyle error when suggesting to use associated function instead of constructor

Fixes https://github.com/rust-lang/rust/issues/119625.

The first commit fixes the infinite recursion and makes the cycle error actually show up. We do this by making the `Display` for `ty::Instance` impl  respect `with_no_queries` so that it can be used in query descriptions.

The second commit fixes the cycle error `resolver_for_lowering` -> `normalize` -> `resolve_instance` (for evaluating const) -> `lang_items` (for `drop_in_place`) -> `resolver_for_lowering` (for collecting lang items). We do this by simply skipping the suggestion when encountering an unnormalized type.
2024-01-05 23:41:43 -05:00
..
2024-01-05 09:30:27 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2023-12-10 10:56:22 +08:00
2023-12-20 22:53:56 -05:00
2023-12-14 15:22:37 +01:00
2023-12-07 17:46:36 +01:00
2024-01-05 10:00:59 +00:00
2023-12-23 00:09:37 +08:00
2024-01-05 10:00:59 +00:00
2023-12-10 14:25:57 +01:00
2024-01-05 10:00:59 +00:00
2023-12-19 13:35:37 -05:00
2023-12-14 15:22:37 +01:00
2023-12-10 10:56:22 +08:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2023-12-15 16:12:27 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 09:30:27 +00:00
2023-12-10 10:56:22 +08:00
2023-12-14 15:22:37 +01:00
2023-12-19 13:35:37 -05:00
2024-01-05 18:49:25 +01:00
2023-12-10 10:56:22 +08:00
2023-12-15 16:12:27 +00:00
2023-12-14 15:22:37 +01:00
2024-01-05 09:30:27 +00:00
2024-01-05 09:30:27 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:56:59 +00:00
2023-12-19 13:35:37 -05:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2024-01-05 10:00:59 +00:00
2023-12-19 13:35:37 -05:00
2023-12-10 10:56:22 +08:00