about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-16 13:45:30 +0200
committerGitHub <noreply@github.com>2025-04-16 13:45:30 +0200
commitec6bdda983fd0e5253cd2fc9da8ca45896a3ef9f (patch)
treea9f950ce9c550c49aa04c15c9186e42ccafe846d /compiler/rustc_trait_selection/src/errors.rs
parentb3284adb549ef24c4ab53e8824ec264f94665f87 (diff)
parent11e5987d017b4ab8dfc522d674aea704aad8605a (diff)
downloadrust-ec6bdda983fd0e5253cd2fc9da8ca45896a3ef9f.tar.gz
rust-ec6bdda983fd0e5253cd2fc9da8ca45896a3ef9f.zip
Rollup merge of #139880 - compiler-errors:rpitit-nameless, r=nnethercote
Don't compute name of associated item if it's an RPITIT

Use `Option::then` in favor of `Option::then_some` to not compute `AssocItem::name` if it fails the condition. Alternatively, I'd be open to changing this just to an `if`.

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

r? ```@nnethercote```
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
0 files changed, 0 insertions, 0 deletions