about summary refs log tree commit diff
path: root/src/test/rustdoc/issue-55321.rs
AgeCommit message (Collapse)AuthorLines
2018-12-25Remove licensesMark Rousskov-11/+0
2018-10-25Check for negative impls when finding auto traitsAaron Hill-0/+27
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).