Rollup merge of #25391 - nham:ref_rfc255_link, r=alexcrichton

This somehow got left out of https://github.com/rust-lang/rust/pull/25308
This commit is contained in:
Manish Goregaokar 2015-05-14 19:33:09 +05:30
commit 3ce4b993e3

View file

@ -3529,7 +3529,9 @@ The actual implementation for each vtable entry can vary on an object-by-object
basis.
Note that for a trait object to be instantiated, the trait must be
_object-safe_. Object safety rules are defined in [RFC 255][rfc255].
_object-safe_. Object safety rules are defined in [RFC 255].
[RFC 255]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
Given a pointer-typed expression `E` of type `&T` or `Box<T>`, where `T`
implements trait `R`, casting `E` to the corresponding pointer type `&R` or