1
Fork 0

Rollup merge of #121686 - compiler-errors:rpitit-printing, r=lcnr

Adjust printing for RPITITs

1. Call RPITITs `{synthetic#N}` instead of `{opaque#N}`.
2. Fall back to printing the RPITIT like an opaque even when printed as an `AliasTy`, just like we do for `ty::Alias`.

You could argue that (2.) is misleading, but I believe it's more consistent than naming `{synthetic#N}`, which I assume approximately nobody knows where that def path name comes from.

r? lcnr
This commit is contained in:
Guillaume Gomez 2024-02-28 16:04:52 +01:00 committed by GitHub
commit a0027e86aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 21 deletions

View file

@ -1690,6 +1690,7 @@ symbols! {
suggestion,
sym,
sync,
synthetic,
t32,
target,
target_abi,