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

typecheck: Add basic typechecking for ReferenceType #1971

Merged
merged 1 commit into from
Mar 8, 2023

Commits on Mar 7, 2023

  1. typecheck: Add basic typechecking for ReferenceType

    gcc/rust/ChangeLog:
    	* hir/tree/rust-hir-pattern.h (HIR::ReferencePattern):
    	added get_referenced_pattern function.
    	* resolve/rust-ast-resolve-pattern.h
    	(Resolve::PatternDeclaration): add visit function for
    	AST::ReferencePattern
    	* typecheck/rust-hir-type-check-pattern.cc
    	(Resolver::TypeCheckPattern): add visit function for
    	HIR::ReferencePattern
    
    gcc/testsuite/ChangeLog:
    	* rust/compile/ref_pattern_fn_param.rs: New test.
    
    Signed-off-by: Mahmoud Mohamed <mahadelr19@gmail.com>
    goar5670 committed Mar 7, 2023
    Configuration menu
    Copy the full SHA
    27ae0fb View commit details
    Browse the repository at this point in the history