about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-24 02:30:35 +0000
committerbors <bors@rust-lang.org>2021-07-24 02:30:35 +0000
commitd03456db5c8b3ff8dcfc31b45ddb49e66f34ab47 (patch)
treeb2c412bfde29d3ba3692771aca0ae6086ec57808 /compiler/rustc_query_impl/src
parent3b4a0dfc139872341a2b55ee9958f6fa8a9f1d64 (diff)
parent0f5bfc22423f8b0a313a19fef92fdeb872f8cd11 (diff)
downloadrust-d03456db5c8b3ff8dcfc31b45ddb49e66f34ab47.tar.gz
rust-d03456db5c8b3ff8dcfc31b45ddb49e66f34ab47.zip
Auto merge of #87338 - SparrowLii:MaybeTrait, r=wesleywiser
Simplify the collecting of `? Trait` bounds in where clause

This PR fixes the FIXME about using less rightward drift and only one error reporting when collecting of `?Trait` bounds in where clause.
Checking whether the path length of `bound_ty` is 1 can be replaced by whether `unresolved_segments` in the partial_res is 0.
Checking whether the `param.kind` is `Type{...}` can also be omitted. One Fx hash calculation will be done for Const or Lifetime param, but the impact on efficiency should be small IMO
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions