about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-11-07 18:01:48 +0800
committerGitHub <noreply@github.com>2018-11-07 18:01:48 +0800
commit88f214cfd588e483911c177e050dcdf21b3b8ee6 (patch)
treeb5edb392e13543a49fea1c7ad88691db98f36363 /src/rustllvm/RustWrapper.cpp
parent0156dd2589fb0177404f9f125d1b66a025a6fa8b (diff)
parent20aa7513835b26256664f409c36611a9bc3b88e4 (diff)
downloadrust-88f214cfd588e483911c177e050dcdf21b3b8ee6.tar.gz
rust-88f214cfd588e483911c177e050dcdf21b3b8ee6.zip
Rollup merge of #55453 - Aaron1011:fix/rustdoc-lifetime, r=pnkfelix
Choose predicates without inference variables over those with them

Fixes #54705

When constructing synthetic auto trait impls, we may come across
multiple predicates involving the same type, trait, and substitutions.
Since we can only display one of these, we pick the one with the 'most
strict' lifetime paramters. This ensures that the impl we render the
user is actually valid (that is, a struct matching that impl will
actually implement the auto trait in question).

This commit exapnds the definition of 'more strict' to take into account
inference variables. We always choose a predicate without inference
variables over a predicate with inference variables.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions