5

Disable the evaluation cache when in intercrate mode by Aaron1011 · Pull Request...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/88994
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Member

Aaron1011 commented on Sep 15

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK