You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@marijnh -- can you clarify what you want to disallow? You want to forbid importing anything that's just a single identifier (as opposed to a path with more than one element in it), right? Which seems quite reasonable if so.
Yes, I was talking about single-identifier imports.
Interestingly, with impl scoping rules, such a thing might actually have an effect (when importing an impl, it moves it into the current block, and thus gives it higher precedence), so I guess there's no reason to disallow it.
It seems that it doesn't actually do anything (you're making foo in the current scope refer to ... whatever foo refers to in the current scope).
Or am I missing something?
The text was updated successfully, but these errors were encountered: