Skip to content

Edition Based Method Disambiguation: Preventing inference ambiguity breakages with extension trait methods#3240

Open
yaahc wants to merge 9 commits intorust-lang:masterfrom
yaahc:edition-based-method-disambiguation
Open

Edition Based Method Disambiguation: Preventing inference ambiguity breakages with extension trait methods#3240
yaahc wants to merge 9 commits intorust-lang:masterfrom
yaahc:edition-based-method-disambiguation

Conversation

@yaahc
Copy link
Member

@yaahc yaahc commented Mar 4, 2022


This RFC proposes introducing an edition field to stability attributes on APIs in the standard libraries and using these edition fields to prevent breakage when newly introduced standard library methods share the same name with pre-existing methods on extension traits defined in downstream libraries.

cc @rust-lang/libs-api and @rust-lang/compiler since this RFC will likely need signoff from both teams. Libs API from the perspective of whether or not this is an acceptable solution to these breakages and Compiler from the perspective of whether this can be reasonably implemented in the compiler.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC.

Projects

Status: Rejected/Not lang

Development

Successfully merging this pull request may close these issues.