-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`).
- Loading branch information
Showing
3 changed files
with
64 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8f26d0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from brson
at huonw@8f26d0b
8f26d0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging huonw/rust/impl-names = 8f26d0b into auto
8f26d0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huonw/rust/impl-names = 8f26d0b merged ok, testing candidate = 51ace54
8f26d0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/3298
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/1141
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/1143
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/3301
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/2403
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2406
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/3317
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/2406
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2411
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/3319
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/2406
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2410
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/2480
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/3305
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/2407
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2411
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/3080
8f26d0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 51ace54