From 060716e97964fd4761047bc350f8acdc87c1671f Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Mon, 7 Mar 2022 11:45:53 -0800 Subject: [PATCH] mention array into_iter in unresolved questions --- text/0000-edition-based-method-disambiguation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/text/0000-edition-based-method-disambiguation.md b/text/0000-edition-based-method-disambiguation.md index 9b7565174a9..1353257d8ad 100644 --- a/text/0000-edition-based-method-disambiguation.md +++ b/text/0000-edition-based-method-disambiguation.md @@ -197,6 +197,12 @@ breaks[^2] if the auto deref for one requires one more level of indirection than the other. We should be careful to consider how autoderef behavior can affect edition based method disambiguation. +As a prior example, the addition of `into_iter` for arrays was done via special +case treatment in the compiler because of this exact sort of breakage in +autoderef precidence. If we can make this edition based disambiguation properly +handle autoderef precidence we maybe able to remove that special case handling +for array's `into_iter` impl and replace it with an `edition = "2018"` field in +it's stability attribute. # Future possibilities [future-possibilities]: #future-possibilities