Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSP: add inspection to check associated type bindings #5866

Merged
merged 2 commits into from Sep 26, 2022

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Aug 4, 2020

This PR adds an inspection and two quick fixes (add missing associated types, remove unknown associated types) that handle missing/erroneous associated type bindings.

assoc_type

There is some very similar code between AddAssocTypeBindingsFix and AddTypeArgumentsFix, which handles inserting new items into type arguments. Should it be extracted? If yes, where?

Related: #886

@Kobzol Kobzol added the feature label Aug 4, 2020
@Kobzol Kobzol requested a review from Undin August 4, 2020 07:38
@Kobzol Kobzol added this to In Progress in To test via automation Aug 4, 2020
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from 2b004c1 to 9134154 Compare August 31, 2020 07:39
@Kobzol
Copy link
Member Author

Kobzol commented Aug 31, 2020

Rebased over master to run regression check on CI.

@Kobzol
Copy link
Member Author

Kobzol commented Aug 31, 2020

Checked the rest of the real projects locally, fixed some false positives.

@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch 3 times, most recently from 738eec6 to eaeecee Compare October 31, 2020 19:06
@Kobzol
Copy link
Member Author

Kobzol commented Oct 31, 2020

Seems that false positives on CI were resolved.

@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch 4 times, most recently from 5b0ba48 to 898fb02 Compare November 9, 2020 12:13
@Kobzol
Copy link
Member Author

Kobzol commented Nov 9, 2020

Finally looks like all tests passed and regressions disappeared, at least for now :D

@Kobzol Kobzol requested a review from vlad20012 January 4, 2021 21:32
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from 898fb02 to e4a8b7d Compare January 11, 2021 15:15
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from e4a8b7d to fdbfc8e Compare June 20, 2021 14:55
@Kobzol
Copy link
Member Author

Kobzol commented Jun 20, 2021

Rebased on master to fix merge conflicts.

@Kobzol Kobzol requested review from vlad20012 and removed request for vlad20012 July 3, 2021 09:16
@vlad20012 vlad20012 assigned vlad20012 and unassigned Undin Jul 26, 2021
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from fdbfc8e to f90b8e4 Compare September 7, 2021 06:54
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from f90b8e4 to 8cf90b4 Compare February 21, 2022 15:34
@dima74
Copy link
Member

dima74 commented Sep 8, 2022

@Kobzol could you please rebase on master

@dima74 dima74 assigned dima74 and unassigned vlad20012 Sep 8, 2022
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from 8cf90b4 to d7de449 Compare September 8, 2022 12:41
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from d7de449 to ef2a8cb Compare September 8, 2022 15:11
@Kobzol
Copy link
Member Author

Kobzol commented Sep 8, 2022

Done.

@dima74 dima74 force-pushed the insp-associated-type-arguments branch from ef2a8cb to 736cf76 Compare September 8, 2022 22:05
@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from 1c325c8 to 38395bf Compare September 26, 2022 13:13
@Kobzol
Copy link
Member Author

Kobzol commented Sep 26, 2022

I tried to refactor it, let me know if it's ok :)

Copy link
Member

@dima74 dima74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Could you please squash the commits

@Kobzol Kobzol force-pushed the insp-associated-type-arguments branch from 38395bf to 0c75aca Compare September 26, 2022 19:36
@Kobzol
Copy link
Member Author

Kobzol commented Sep 26, 2022

Done.

Copy link
Member

@dima74 dima74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
bors r+

@bors
Copy link
Contributor

bors bot commented Sep 26, 2022

Build succeeded:

@bors bors bot merged commit 08043a6 into intellij-rust:master Sep 26, 2022
To test automation moved this from In Progress to Test Sep 26, 2022
@Kobzol Kobzol deleted the insp-associated-type-arguments branch September 26, 2022 21:42
@github-actions github-actions bot added this to the v180 milestone Sep 26, 2022
@neonaot neonaot self-assigned this Oct 3, 2022
@neonaot neonaot moved this from Test to Done in To test Oct 3, 2022
@Undin Undin mentioned this pull request Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
To test
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants