This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 35c8f26
committed
Auto merge of rust-lang#88994 - Aaron1011:intercrate-caching, r=jackh726
Disable the evaluation cache when in intercrate mode
It's possible to use the same `InferCtxt` with both
an intercrate and non-intercrate `SelectionContext`. However,
the local (inferctxt) evaluation cache is not aware of this
distinction, so this kind of `InferCtxt` re-use will pollute
the cache wth bad results.
This commit avoids the issue by disabling the evaluation cache
entirely during intercrate mode.1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
974 | 974 | | |
975 | 975 | | |
976 | 976 | | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
977 | 985 | | |
978 | 986 | | |
979 | 987 | | |
| |||
996 | 1004 | | |
997 | 1005 | | |
998 | 1006 | | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
999 | 1015 | | |
1000 | 1016 | | |
1001 | 1017 | | |
| |||
0 commit comments