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

Implement Structs #85

Closed
wants to merge 10 commits into from
Closed

Implement Structs #85

wants to merge 10 commits into from

Conversation

edg-l
Copy link
Collaborator

@edg-l edg-l commented Jan 22, 2024

Related to #71

mod Structs {
    struct Node {
        a: i32,
        b: i32,
    }

    fn main() -> i32 {
        let mut x: Node = create_node(2, 4);
        x.a = 5;
        return x.a + x.b;
    }

    fn create_node(a: i32, b: i32) -> Node {
        let x: Node = Node {
            a: a,
            b: b,
        };
        return x;
    }
}

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2024

Codecov Report

Attention: 86 lines in your changes are missing coverage. Please review.

Comparison is base (b6f3420) 58.27% compared to head (e94e2ee) 64.04%.

Files Patch % Lines
crates/concrete_codegen_mlir/src/scope_context.rs 75.40% 46 Missing ⚠️
crates/concrete_ast/src/types.rs 41.17% 20 Missing ⚠️
crates/concrete_codegen_mlir/src/codegen.rs 93.72% 17 Missing ⚠️
crates/concrete_check/src/lib.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            check      #85      +/-   ##
==========================================
+ Coverage   58.27%   64.04%   +5.77%     
==========================================
  Files          29       30       +1     
  Lines        1661     2050     +389     
==========================================
+ Hits          968     1313     +345     
- Misses        693      737      +44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edg-l edg-l changed the base branch from main to references January 22, 2024 22:34
Base automatically changed from references to main January 23, 2024 14:24
@edg-l edg-l changed the base branch from main to check January 23, 2024 18:50
Base automatically changed from check to main February 2, 2024 14:53
@edg-l edg-l closed this Feb 13, 2024
@edg-l edg-l deleted the structs branch May 8, 2024 10:07
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.

2 participants