rust/src/librustc_typeck
bors c8a9c340de Auto merge of #72962 - lcnr:ObligationCause-lrc, r=ecstatic-morse
store `ObligationCause` on the heap

Stores `ObligationCause` on the heap using an `Rc`.

This PR trades off some transient memory allocations to reduce the size of–and thus the number of instructions required to memcpy–a few widely used data structures in trait solving.
2020-06-16 06:22:52 +00:00
..
2020-05-22 18:03:08 +01:00
2020-06-11 17:08:23 +01:00
2020-06-02 20:42:54 +03:00
2020-06-02 20:42:54 +03:00
2020-06-11 17:08:23 +01:00

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.