diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-09-10 15:57:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-10 15:57:51 +0200 |
| commit | 2ded39938ac365fc843062eeef39439429a845da (patch) | |
| tree | 6145c772d2eadb7594cfbc41ef9ae88faeb1194c | |
| parent | 8bfc5617524eb4a5d74152a37abd0cb05434505a (diff) | |
| parent | a3f05cec762948e68d2f5cc29003781f44f79820 (diff) | |
| download | rust-2ded39938ac365fc843062eeef39439429a845da.tar.gz rust-2ded39938ac365fc843062eeef39439429a845da.zip | |
Rollup merge of #36346 - oli-obk:patch-1, r=arielb1
clean up `get_vtable`'s doc comment
| -rw-r--r-- | src/librustc_trans/meth.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc_trans/meth.rs b/src/librustc_trans/meth.rs index e958795570e..ee2f24d21e0 100644 --- a/src/librustc_trans/meth.rs +++ b/src/librustc_trans/meth.rs @@ -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`. |
