Skip to content

Commit 40482a6

Browse files
committed
feat: update workflow
1 parent a6a5aa6 commit 40482a6

5 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/rust.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212

1313
runs-on: ubuntu-latest
1414

15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install LLVM
18+
run: sudo apt install llvm
19+
1520
steps:
1621
- uses: actions/checkout@v4
1722
- name: Build

compiler/astoir_hir_lowering/src/bools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use ast::tree::{ASTTreeNode, ASTTreeNodeKind};
22
use astoir_hir::{ctx::{HIRBranchedContext, HIRContext}, nodes::{HIRNode, HIRNodeKind}};
3-
use compiler_typing::{raw::RawType, storage::BOOLEAN_TYPE, tree::Type};
3+
use compiler_typing::{raw::RawType, tree::Type};
44
use diagnostics::{DiagnosticResult};
55

66
use crate::values::lower_ast_value;

compiler/astoir_hir_lowering/src/structs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use std::collections::HashMap;
22

33
use ast::tree::{ASTTreeNode, ASTTreeNodeKind};
44
use astoir_hir::{ctx::{HIRBranchedContext, HIRContext}, nodes::{HIRNode, HIRNodeKind}, structs::HIRStructContainer};
5-
use compiler_typing::{raw::RawType, structs::RawStructTypeContainer, tree::Type};
6-
use compiler_utils::{hash::{HashedString, SelfHash}, utils::indexed::IndexStorage};
7-
use diagnostics::{DiagnosticResult, builders::{make_already_in_scope, make_cannot_find_type, make_struct_init_missing_field, make_struct_missing_field}};
5+
use compiler_typing::{raw::RawType, structs::RawStructTypeContainer};
6+
use compiler_utils::utils::indexed::IndexStorage;
7+
use diagnostics::{DiagnosticResult, builders::make_already_in_scope};
88

9-
use crate::{lower_ast_body, types::{lower_ast_type, lower_ast_type_struct}, values::lower_ast_value};
9+
use crate::{lower_ast_body, types::lower_ast_type_struct, values::lower_ast_value};
1010

1111
fn lower_ast_struct_member(context: &mut HIRContext, node: Box<ASTTreeNode>, container: &mut RawStructTypeContainer) -> DiagnosticResult<bool> {
1212
if let ASTTreeNodeKind::StructFieldMember { name, member_type } = node.kind.clone() {

compiler/astoir_hir_lowering/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use ast::types::ASTType;
22
use astoir_hir::ctx::HIRContext;
3-
use compiler_typing::{TypeParamType, raw::RawType, references::TypeReference, structs::RawStructTypeContainer, tree::Type};
3+
use compiler_typing::{TypeParamType, raw::RawType, references::TypeReference, tree::Type};
44
use compiler_utils::hash::HashedString;
55
use diagnostics::{DiagnosticResult, DiagnosticSpanOrigin, builders::{make_cannot_find_type, make_diff_size_specifiers, make_diff_type_specifiers, make_req_type_kind}};
66

compiler/astoir_hir_lowering/src/uses.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use compiler_utils::hash::HashedString;
88
use diagnostics::{DiagnosticResult, DiagnosticSpanOrigin, MaybeDiagnostic, builders::{make_cannot_find_type, make_diff_type_specifiers, make_req_type_kind, make_use_not_found}};
99
use lexer::lexer::lexer_parse_file;
1010

11-
use crate::{lower_ast_toplevel, structs::lower_ast_struct_declaration, types::{lower_ast_type, lower_ast_type_struct, lower_sized_base_type}, values::lower_ast_value};
11+
use crate::{lower_ast_toplevel, structs::lower_ast_struct_declaration, types::{lower_ast_type, lower_sized_base_type}};
1212

1313
pub fn handle_ast_use_statement_function_decl(context: &mut HIRContext, node: Box<ASTTreeNode>, ctx: &ParserCtx) -> MaybeDiagnostic {
1414
if let ASTTreeNodeKind::FunctionDeclaration { func_name, args, body: _, return_type, requires_this: _ } = node.kind.clone() {

0 commit comments

Comments
 (0)