diff options
| author | bors <bors@rust-lang.org> | 2021-07-24 02:30:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-07-24 02:30:35 +0000 |
| commit | d03456db5c8b3ff8dcfc31b45ddb49e66f34ab47 (patch) | |
| tree | b2c412bfde29d3ba3692771aca0ae6086ec57808 /compiler/rustc_query_impl/src | |
| parent | 3b4a0dfc139872341a2b55ee9958f6fa8a9f1d64 (diff) | |
| parent | 0f5bfc22423f8b0a313a19fef92fdeb872f8cd11 (diff) | |
| download | rust-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
