Skip to content

Commit 060716e

Browse files
committed
mention array into_iter in unresolved questions
1 parent 0ded868 commit 060716e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

text/0000-edition-based-method-disambiguation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ breaks[^2] if the auto deref for one requires one more level of indirection
197197
than the other. We should be careful to consider how autoderef behavior can
198198
affect edition based method disambiguation.
199199

200+
As a prior example, the addition of `into_iter` for arrays was done via special
201+
case treatment in the compiler because of this exact sort of breakage in
202+
autoderef precidence. If we can make this edition based disambiguation properly
203+
handle autoderef precidence we maybe able to remove that special case handling
204+
for array's `into_iter` impl and replace it with an `edition = "2018"` field in
205+
it's stability attribute.
200206

201207
# Future possibilities
202208
[future-possibilities]: #future-possibilities

0 commit comments

Comments
 (0)