Skip to content

Commit

Permalink
Rollup merge of #36346 - oli-obk:patch-1, r=arielb1
Browse files Browse the repository at this point in the history
clean up `get_vtable`'s doc comment
  • Loading branch information
GuillaumeGomez authored Sep 10, 2016
2 parents 8bfc561 + a3f05ce commit 2ded399
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc_trans/meth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 2ded399

Please sign in to comment.