Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upTracking issue for `overlapping_inherent_impls` compatibility lint #36889
Comments
This comment has been minimized.
This comment has been minimized.
|
@aturon , could you write a description for this? |
steveklabnik
added
the
A-lint
label
Oct 7, 2016
This comment has been minimized.
This comment has been minimized.
|
#38967 could be related to this. |
nikomatsakis
added
the
T-compiler
label
Jan 24, 2017
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge This warning has been out for a while. I propose we move it to deny-by-default. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Jan 24, 2017
•
|
Team member @nikomatsakis has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
This comment has been minimized.
This comment has been minimized.
There's a catch. |
This comment has been minimized.
This comment has been minimized.
|
@petrochenkov heh =) Um, d'oh! Then I propose we kill it. I'll start again. :) |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp cancel |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Jan 25, 2017
|
@nikomatsakis proposal cancelled. |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge This warning has been deny-by-default for a while. I propose we move it to a hard error. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Jan 25, 2017
•
|
Team member @nikomatsakis has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Jan 30, 2017
|
|
rfcbot
added
the
final-comment-period
label
Jan 30, 2017
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Feb 9, 2017
|
The final comment period is now complete. |
petrochenkov
referenced this issue
Feb 19, 2017
Open
Enum associated functions can name-clash with variants, but cannot be called. #39946
brson
added
the
B-unstable
label
Mar 1, 2017
This comment has been minimized.
This comment has been minimized.
|
cc @petrochenkov @rust-lang/compiler -- anyone want to make a quick stabilization PR that we can backport to 1.17 beta? |
This comment has been minimized.
This comment has been minimized.
|
This seems like a good first bug. I wrote up some directions and posted them to forge for converting compatibility lints into hard errors. The descriptions probably haven't landed yet, but here is the PR: Marking a E-easy and E-mentor, the directions are in that PR. =) |
nikomatsakis
added
E-easy
E-mentor
labels
Mar 16, 2017
This comment has been minimized.
This comment has been minimized.
|
Hello, I would like to work on this if no one is interested. |
This comment has been minimized.
This comment has been minimized.
|
@topecongiro go for it:) |
This comment has been minimized.
This comment has been minimized.
|
@topecongiro please feel free to ping me on irc ( |
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis Thank you! |
petrochenkov commentedOct 1, 2016
•
edited by nikomatsakis
UPDATE: We've decided to convert this warning into a hard error, but are still waiting for a PR to make that a reality. If you're interested in contributing, there are directions for writing such a PR available here.
This tracking issue pertains to a bug fix for #22889. The problem was that the compiler was accepting two inherent impls that both defined the same method, which creates an obvious ambiguity:
The most obvious fix here is to give one method a distinct name, though sometimes there are other possible rewrites (e.g., one could rewrite the impls to use a double dispatch pattern).
Current status
overlapping_inherent_implslint as warn-by-defaultoverlapping_inherent_implslint deny-by-defaultoverlapping_inherent_implslint a hard error