about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/interpret/eval_context.rs
diff options
context:
space:
mode:
authorLeSeulArtichaut <leseulartichaut@gmail.com>2020-08-03 00:49:11 +0200
committerLeSeulArtichaut <leseulartichaut@gmail.com>2020-09-04 17:47:51 +0200
commit3e14b684dd31794e8dbe6acd7a5f132997ee0c47 (patch)
tree04430a32c809ca7644bbe9ae281735b4671154b8 /compiler/rustc_mir/src/interpret/eval_context.rs
parentef55a0a92f3cb6572ef67d99f4aefbdeb7b6b804 (diff)
downloadrust-3e14b684dd31794e8dbe6acd7a5f132997ee0c47.tar.gz
rust-3e14b684dd31794e8dbe6acd7a5f132997ee0c47.zip
Change ty.kind to a method
Diffstat (limited to 'compiler/rustc_mir/src/interpret/eval_context.rs')
-rw-r--r--compiler/rustc_mir/src/interpret/eval_context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir/src/interpret/eval_context.rs b/compiler/rustc_mir/src/interpret/eval_context.rs
index 525da87463a..f2f6c893eda 100644
--- a/compiler/rustc_mir/src/interpret/eval_context.rs
+++ b/compiler/rustc_mir/src/interpret/eval_context.rs
@@ -534,7 +534,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
         if !layout.is_unsized() {
             return Ok(Some((layout.size, layout.align.abi)));
         }
-        match layout.ty.kind {
+        match layout.ty.kind() {
             ty::Adt(..) | ty::Tuple(..) => {
                 // First get the size of all statically known fields.
                 // Don't use type_of::sizing_type_of because that expects t to be sized,