Skip to content

Refactored to use implicit insert and remove insert_type method from context object #3395 #3488

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

Closed

Conversation

mostafa630
Copy link

This solution resolves issue #3395 by refactoring the code to use implicit_insert_type instead of insert_type, improving clarity and eliminating the insert_type method from the context object.
Changed files:
-typecheck/rust-substitution-mapper.cc: Updated to use insert_implicit_type instead of insert_type.
-typecheck/rust-hir-type-check.h: Removed the insert_type declaration from the TypeCheckContext class.
-typecheck/rust-typecheck-context.cc: Removed the insert_type definition.

…the context object (Rust-GCC#3395)

gcc/rust/ChangeLog:

    * typecheck/rust-substitution-mapper.cc: Refactored code to use
      insert_implicit_type instead of insert_type.
    * typecheck/rust-hir-type-check.h: Removed declaration of insert_type
      from TypeCheckContext class.
    * typecheck/rust-typecheck-context.cc: Removed definition of insert_type.

Signed-off-by: sasa630 <[email protected]>
@mostafa630 mostafa630 closed this Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant