Skip to content

Commit e86e8c1

Browse files
committed
Revert "change relative priority of auto-slice and auto-ptr"
This reverts commit 2ac64d9.
1 parent 9b58369 commit e86e8c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustc/middle/typeck/check/method.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,12 +527,12 @@ impl LookupContext {
527527
* Attempts both auto-slice and auto-ptr, as appropriate.
528528
*/
529529

530-
match self.search_for_autoptrd_method(self_ty, autoderefs) {
530+
match self.search_for_autosliced_method(self_ty, autoderefs) {
531531
Some(move mme) => { return Some(move mme); }
532532
None => {}
533533
}
534534

535-
match self.search_for_autosliced_method(self_ty, autoderefs) {
535+
match self.search_for_autoptrd_method(self_ty, autoderefs) {
536536
Some(move mme) => { return Some(move mme); }
537537
None => {}
538538
}

0 commit comments

Comments
 (0)