Revert "change relative priority of auto-slice and auto-ptr"

This reverts commit 2ac64d91ac.
This commit is contained in:
Graydon Hoare 2012-09-18 16:41:51 -07:00
parent 9b58369f6b
commit e86e8c16e6

View File

@ -527,12 +527,12 @@ impl LookupContext {
* Attempts both auto-slice and auto-ptr, as appropriate.
*/
match self.search_for_autoptrd_method(self_ty, autoderefs) {
match self.search_for_autosliced_method(self_ty, autoderefs) {
Some(move mme) => { return Some(move mme); }
None => {}
}
match self.search_for_autosliced_method(self_ty, autoderefs) {
match self.search_for_autoptrd_method(self_ty, autoderefs) {
Some(move mme) => { return Some(move mme); }
None => {}
}