about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-13 14:52:58 +0000
committerbors <bors@rust-lang.org>2022-09-13 14:52:58 +0000
commitba15f75c39acf488d1fc4cc11cfc1cbb3dda0f7a (patch)
tree291121349b3bb6fe7c9090304326d0d779bd9a4c /compiler/rustc_plugin_impl/src/errors.rs
parent125d43cb2c1107e081d1c8816faf4437bd911da1 (diff)
parentd223c28c7d89de5a6f040e254c8a602ae7d48814 (diff)
downloadrust-ba15f75c39acf488d1fc4cc11cfc1cbb3dda0f7a.tar.gz
rust-ba15f75c39acf488d1fc4cc11cfc1cbb3dda0f7a.zip
Auto merge of #13225 - lowr:fix/hir-proj-normalization, r=Veykril
fixup: remove unnecessary `Option`

Fixup for #13223, two things:

- `normalize_projection_query()` (and consequently `HirDatabase::normalize_projection()`) never returns `None` (well, it used to when I first wrote it...), so just return `Ty` instead of `Option<Ty>`
- When chalk cannot normalize projection uniquely, `normalize_trait_assoc_type()` used to return `None` before #13223, but not anymore because of the first point. I restored the behavior so its callers work as before.
Diffstat (limited to 'compiler/rustc_plugin_impl/src/errors.rs')
0 files changed, 0 insertions, 0 deletions