]> git.lizzy.rs Git - rust.git/commit
Don't memoize seen types.
authorjumbatm <30644300+jumbatm@users.noreply.github.com>
Sun, 16 Aug 2020 01:01:14 +0000 (11:01 +1000)
committerjumbatm <30644300+jumbatm@users.noreply.github.com>
Mon, 17 Aug 2020 16:01:04 +0000 (02:01 +1000)
commit6c57de1166d36725a689cef17e0dab8b9abcd00b
tree6f583748540a24a7e6f6b9e336ca98bde6a9f63e
parentbca48ad7acbc7b7462bce58f0513c02c4e5444b5
Don't memoize seen types.

That cache is unlikely to be particularly useful within a single
invocation of structurally_same_type, especially compared to memoizing
results across _all_ invocations of that function.
src/librustc_lint/builtin.rs