]> git.lizzy.rs Git - rust.git/commit
Make Ty wrap TyKind in an Arc
authorFlorian Diebold <flodiebold@gmail.com>
Sun, 14 Mar 2021 16:25:29 +0000 (17:25 +0100)
committerFlorian Diebold <flodiebold@gmail.com>
Sun, 14 Mar 2021 16:31:08 +0000 (17:31 +0100)
commitaf466f8542173002361eb134e66102908c7cd024
tree75a970fa98bf1f67ae390ae5b6a71d09fd963641
parent195414783402d6973f4e673e84be9b7bc19cbfa6
Make Ty wrap TyKind in an Arc

... like it will be in Chalk. We still keep `interned_mut` and
`into_inner` methods that will probably not exist with Chalk.

This worsens performance slightly (5ginstr inference on RA), but doesn't
include other simplifications we can do yet.
crates/hir_ty/src/infer.rs
crates/hir_ty/src/infer/coerce.rs
crates/hir_ty/src/infer/expr.rs
crates/hir_ty/src/infer/pat.rs
crates/hir_ty/src/infer/unify.rs
crates/hir_ty/src/lib.rs
crates/hir_ty/src/lower.rs
crates/hir_ty/src/traits/chalk/mapping.rs