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

Get rid of duplicate interface #3396 #3423

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

GS-GOAT
Copy link
Contributor

@GS-GOAT GS-GOAT commented Feb 7, 2025

  • Updated single-parameter calls to pass an explicit HirId alongside the type.

  • This refactor ensures that all calls to insert_implicit_type consistently use the two-parameter version, improving clarity and maintainability of type mapping tracking.

Fixes #3396

Signed-off-by: Guransh Singh [email protected]

@powerboat9
Copy link
Collaborator

powerboat9 commented Feb 7, 2025

Feel free to use git rebase -i -- will allow you to squash commits together, reword commits, etc.

@GS-GOAT GS-GOAT force-pushed the master branch 4 times, most recently from c343ee7 to b2e4de9 Compare February 8, 2025 07:14
gcc/rust/ChangeLog:

	* typecheck/rust-autoderef.cc
	(insert_implicit_type): Update single-parameter call to
	pass explicit HirId.
	* typecheck/rust-hir-type-check-expr.cc: Same.
	* typecheck/rust-hir-type-check-pattern.cc: Same.
	* typecheck/rust-hir-type-check.h: Removed call
	to the duplicate interface.
	* typecheck/rust-typecheck-context.cc
	(TypeCheckContext::insert_implicit_type): Removed the
	interface with no HirId field.

Signed-off-by: Guransh Singh <[email protected]>
@GS-GOAT
Copy link
Contributor Author

GS-GOAT commented Feb 8, 2025

@powerboat9 Thanks.

@GS-GOAT
Copy link
Contributor Author

GS-GOAT commented Feb 8, 2025

@philberty These changes include all the instances where the call was made to the interface without HirId.

@P-E-P P-E-P requested review from philberty and P-E-P February 10, 2025 09:49
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

LGTM

@philberty philberty added this pull request to the merge queue Feb 10, 2025
Merged via the queue into Rust-GCC:master with commit af234dd Feb 10, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Get rid of duplicate interface
4 participants