diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-05 23:41:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 23:41:43 -0500 |
| commit | 61c776ae0a01b8fd00288ef61a2c3f38d8a98b36 (patch) | |
| tree | 38551ffad7b7c5668f458703034d84f4ded5a8b0 /compiler/rustc_driver_impl/src | |
| parent | a95a363dbab113bcee3bbe3f8b0f8d854297d0fe (diff) | |
| parent | 339fa311ad8140cfb98a1c6080ea7e002b9ce3fa (diff) | |
| download | rust-61c776ae0a01b8fd00288ef61a2c3f38d8a98b36.tar.gz rust-61c776ae0a01b8fd00288ef61a2c3f38d8a98b36.zip | |
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.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
0 files changed, 0 insertions, 0 deletions
