diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-07-02 10:35:30 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-07-02 11:33:24 -0400 |
| commit | 90ea49b891937eb7f121c1ded01ceacb66074e74 (patch) | |
| tree | 596160e12e8bad733f470b0c58f6a45d27eec80d /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 327093007add511cdcca4032dda13f7a342f29ea (diff) | |
| download | rust-90ea49b891937eb7f121c1ded01ceacb66074e74.tar.gz rust-90ea49b891937eb7f121c1ded01ceacb66074e74.zip | |
introduce `predicates_defined_on` for traits
This new query returns only the predicates *directly defined* on an item (in contrast to the more common `predicates_of`, which returns the predicates that must be proven to reference an item). These two sets are almost always identical except for traits, where `predicates_of` includes an artificial `Self: Trait<...>` predicate (basically saying that you cannot use a trait item without proving that the trait is implemented for the type parameters). This new query is only used in chalk lowering, where this artificial `Self: Trait` predicate is problematic. We encode it in metadata but only where needed since it is kind of repetitive with existing information. Co-authored-by: Tyler Mandry <tmandry@gmail.com>
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
