about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-11-12 07:31:08 +0000
committerbors <bors@rust-lang.org>2017-11-12 07:31:08 +0000
commitb087dedf3f85c4c90e27cb6e119b4da2712be5c9 (patch)
treed1f64b53857070ed6095261689772904933a1700 /src/rustllvm/RustWrapper.cpp
parentc1aacdcb30db1cdd32c06fe90cbe38e0800b2502 (diff)
parent77cd993fd1582680cc01ce86d07e52b2e4b34fec (diff)
downloadrust-b087dedf3f85c4c90e27cb6e119b4da2712be5c9.tar.gz
rust-b087dedf3f85c4c90e27cb6e119b4da2712be5c9.zip
Auto merge of #45870 - mikeyhew:arbitrary_self_types, r=arielb1
Implement arbitrary_self_types

r? @arielb1
cc @nikomatsakis

Partial implementation of #44874.  Supports trait and struct methods with arbitrary self types, as long as the type derefs (transitively) to `Self`. Doesn't support raw-pointer `self` yet.

Methods with non-standard self types (i.e. anything other than `&self, &mut self, and Box<Self>`) are not object safe, because dynamic dispatch hasn't been implemented for them yet.

I believe this is also a (partial) fix for #27941.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions