about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-11-13 19:16:18 +0000
committerbors <bors@rust-lang.org>2018-11-13 19:16:18 +0000
commit9fefb67669f00c25b476e7a80c9c9300a987d517 (patch)
treeac52853cd239af068c447b627a9c4836d0ca4321 /src/rustllvm/RustWrapper.cpp
parent5c9f7dcd8307f92931bc7e5534b467063b4ecc76 (diff)
parent56acb2a00180c1e041e03e48c1c1818c305e13c6 (diff)
downloadrust-9fefb67669f00c25b476e7a80c9c9300a987d517.tar.gz
rust-9fefb67669f00c25b476e7a80c9c9300a987d517.zip
Auto merge of #55356 - Aaron1011:fix/rustdoc-negative-auto, r=nikomatsakis
Check for negative impls when finding auto traits

Fixes #55321

When AutoTraitFinder begins examining a type, it checks for an explicit
negative impl. However, it wasn't checking for negative impls found when
calling 'select' on predicates found from nested obligations.

This commit makes AutoTraitFinder check for negative impls whenever it
makes a call to 'select'. If a negative impl is found, it immediately
bails out.

Normal users of SelectioContext don't need to worry about this, since
they stop as soon as an Unimplemented error is encountered. However, we
add predicates to our ParamEnv when we encounter this error, so we need
to handle negative impls specially (so that we don't try adding them to
our ParamEnv).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions