about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-28 16:04:52 +0100
committerGitHub <noreply@github.com>2024-02-28 16:04:52 +0100
commita0027e86aa603ee57d663236cb1fd7be3f31b2dd (patch)
treec710b5f9adcc57fe4a9957fec98b980ab033243c /compiler/rustc_parse/src/parser/expr.rs
parentb609afeaf274f7c8a7b9ce8890834a5acc599e53 (diff)
parentb57ddfe079cbd9974f0b1f68a50f8f1b901cfdaf (diff)
downloadrust-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