about summary refs log tree commit diff
path: root/src/librustc_mir
diff options
context:
space:
mode:
authorAna-Maria Mihalache <mihalacheana.maria@yahoo.com>2020-05-11 15:25:33 +0000
committerAna-Maria Mihalache <mihalacheana.maria@yahoo.com>2020-06-05 13:20:09 +0000
commite01896a36f36513676756ea3eb3b8284665263cf (patch)
treee80f4650d676c941fa8ce4848ef3d50dfc239197 /src/librustc_mir
parent219380d840877de97b0e17674be7212ebc929d51 (diff)
downloadrust-e01896a36f36513676756ea3eb3b8284665263cf.tar.gz
rust-e01896a36f36513676756ea3eb3b8284665263cf.zip
Rename traits::Vtable to ImplSource.
Diffstat (limited to 'src/librustc_mir')
-rw-r--r--src/librustc_mir/monomorphize/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir/monomorphize/mod.rs b/src/librustc_mir/monomorphize/mod.rs
index 28edd87a3ad..0b2ee3280df 100644
--- a/src/librustc_mir/monomorphize/mod.rs
+++ b/src/librustc_mir/monomorphize/mod.rs
@@ -20,11 +20,11 @@ pub fn custom_coerce_unsize_info<'tcx>(
     });
 
     match tcx.codegen_fulfill_obligation((ty::ParamEnv::reveal_all(), trait_ref)) {
-        Ok(traits::VtableImpl(traits::VtableImplData { impl_def_id, .. })) => {
+        Ok(traits::ImplSourceImpl(traits::ImplSourceImplData { impl_def_id, .. })) => {
             tcx.coerce_unsized_info(impl_def_id).custom_kind.unwrap()
         }
-        vtable => {
-            bug!("invalid `CoerceUnsized` vtable: {:?}", vtable);
+        impl_source => {
+            bug!("invalid `CoerceUnsized` impl_source: {:?}", impl_source);
         }
     }
 }