diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-02-28 16:04:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-28 16:04:52 +0100 |
| commit | a0027e86aa603ee57d663236cb1fd7be3f31b2dd (patch) | |
| tree | c710b5f9adcc57fe4a9957fec98b980ab033243c /compiler/rustc_parse/src/parser/expr.rs | |
| parent | b609afeaf274f7c8a7b9ce8890834a5acc599e53 (diff) | |
| parent | b57ddfe079cbd9974f0b1f68a50f8f1b901cfdaf (diff) | |
| download | rust-a0027e86aa603ee57d663236cb1fd7be3f31b2dd.tar.gz rust-a0027e86aa603ee57d663236cb1fd7be3f31b2dd.zip | |
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
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
