diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-01-22 19:23:37 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-01-22 22:20:18 -0500 |
| commit | 90afc0765e5e536af6307b63e1655a38df06e235 (patch) | |
| tree | 95edd24b57381a4113c04a5fd747d52dadd97076 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | d1e594f4029c6ac8feb7c2acf9f9e04c1b9c493c (diff) | |
| download | rust-90afc0765e5e536af6307b63e1655a38df06e235.tar.gz rust-90afc0765e5e536af6307b63e1655a38df06e235.zip | |
Use a `ParamEnvAnd<Predicate>` for caching in `ObligationForest`
Previously, we used a plain `Predicate` to cache results (e.g. successes and failures) in ObligationForest. However, fulfillment depends on the precise `ParamEnv` used, so this is unsound in general. This commit changes the impl of `ForestObligation` for `PendingPredicateObligation` to use `ParamEnvAnd<Predicate>` instead of `Predicate` for the associated type. The associated type and method are renamed from 'predicate' to 'cache_key' to reflect the fact that type is no longer just a predicate.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
