diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-01 16:30:21 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-01-02 02:53:54 +1100 |
| commit | 8f26d0b9b8725fa74dc36fcf4abf45dc1ca8c56a (patch) | |
| tree | d10ee55a699bed56fb8cf05aefe1c5a3e8b7a822 /src/rustllvm/RustWrapper.cpp | |
| parent | 09a561ac9caaf4acfc170cac92efe6bb5a991a11 (diff) | |
| download | rust-8f26d0b9b8725fa74dc36fcf4abf45dc1ca8c56a.tar.gz rust-8f26d0b9b8725fa74dc36fcf4abf45dc1ca8c56a.zip | |
syntax: expand impl_pretty_name to handle more cases.
The resulting symbol names aren't very pretty at all:
trait Trait { fn method(&self); }
impl<'a> Trait for ~[(&'a int, fn())] { fn method(&self) {} }
gives
Trait$$UP$$VEC$$TUP_2$$BP$int$$FN$$::method::...hash...::v0.0
However, at least it contain some reference to the Self type, unlike
`Trait$__extensions__::method:...`, which is what the symbol name used
to be for anything other than `impl Trait for foo::bar::Baz` (which
became, and still becomes, `Trait$Baz::method`).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
