]> git.lizzy.rs Git - rust.git/commit
Introduce UnpackedKind
authorvarkor <github@varkor.com>
Fri, 23 Feb 2018 01:13:54 +0000 (01:13 +0000)
committervarkor <github@varkor.com>
Fri, 23 Feb 2018 01:13:54 +0000 (01:13 +0000)
commit8b2037c6fec88fc02b7f5087f14f25b9476dd42d
tree32c576b6d30405ba2eba908edc779122ee3f11fd
parentb1f8e6fb06d7362eeb2065347a7db94e76b1cb2f
Introduce UnpackedKind

This adds an `UnpackedKind` type as a typesafe counterpart to `Kind`. This should make future changes to kinds (such as const generics!) more resilient, as the type-checker should catch more potential issues.
17 files changed:
src/librustc/ich/impls_ty.rs
src/librustc/infer/anon_types/mod.rs
src/librustc/traits/select.rs
src/librustc/ty/instance.rs
src/librustc/ty/relate.rs
src/librustc/ty/sty.rs
src/librustc/ty/subst.rs
src/librustc/ty/util.rs
src/librustc_const_eval/_match.rs
src/librustc_driver/test.rs
src/librustc_mir/interpret/eval_context.rs
src/librustc_mir/monomorphize/mod.rs
src/librustc_mir/transform/generator.rs
src/librustc_trans/common.rs
src/librustc_typeck/astconv.rs
src/librustc_typeck/check/dropck.rs
src/librustc_typeck/variance/constraints.rs