提交 2ded3993 编写于 作者: G Guillaume Gomez 提交者: GitHub

Rollup merge of #36346 - oli-obk:patch-1, r=arielb1

clean up `get_vtable`'s doc comment
......@@ -116,9 +116,11 @@ pub fn trans_object_shim<'a, 'tcx>(ccx: &'a CrateContext<'a, 'tcx>,
llfn
}
/// Creates a returns a dynamic vtable for the given type and vtable origin.
/// Creates a dynamic vtable for the given type and vtable origin.
/// This is used only for objects.
///
/// The vtables are cached instead of created on every call.
///
/// The `trait_ref` encodes the erased self type. Hence if we are
/// making an object `Foo<Trait>` from a value of type `Foo<T>`, then
/// `trait_ref` would map `T:Trait`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册