Skip to content

refac: separate compiler and parser #570

refac: separate compiler and parser

refac: separate compiler and parser #570

GitHub Actions / Linux X64 Unit Tests Results failed Aug 26, 2024 in 0s

4 fail, 190 pass in 0s

  1 files  ±0   25 suites  ±0   0s ⏱️ ±0s
194 tests ±0  190 ✅ ±0  0 💤 ±0  4 ❌ ±0 
235 runs  ±0  231 ✅ ±0  0 💤 ±0  4 ❌ ±0 

Results for commit d70420e. ± Comparison against earlier commit 132ef0e.

Annotations

Check warning on line 0 in yul::parser::statement::function_definition::tests

See this annotation in the file changed.

@github-actions github-actions / Linux X64 Unit Tests Results

1 out of 2 runs failed: error_invalid_attributes_multiple_repeated (yul::parser::statement::function_definition::tests)

unit-tests-results.xml [took 0s]
Raw output
failed yul::parser::statement::function_definition::tests::error_invalid_attributes_multiple_repeated
thread 'yul::parser::statement::function_definition::tests::error_invalid_attributes_multiple_repeated' panicked at yul-syntax-tools/src/yul/parser/statement/function_definition.rs:500:9:
assertion `left == right` failed
  left: Ok(Object { location: Location { line: 2, column: 1 }, identifier: "Test", code: Code { location: Location { line: 3, column: 5 }, block: Block { location: Location { line: 3, column: 10 }, statements: [Block(Block { location: Location { line: 4, column: 9 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 5, column: 13 }, name: Return, arguments: [Literal(Literal { location: Location { line: 5, column: 20 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 5, column: 23 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] })] } }, inner_object: Some(Object { location: Location { line: 8, column: 5 }, identifier: "Test_deployed", code: Code { location: Location { line: 9, column: 9 }, block: Block { location: Location { line: 9, column: 14 }, statements: [Block(Block { location: Location { line: 10, column: 13 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 11, column: 17 }, name: Return, arguments: [Literal(Literal { location: Location { line: 11, column: 24 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 11, column: 27 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] }), FunctionDefinition(FunctionDefinition { location: Location { line: 14, column: 22 }, identifier: "test_$llvm_UnknownAttribute1_UnknownAttribute1_UnknownAttribute2_llvm$_test", arguments: [], result: [Identifier { location: Location { line: 14, column: 103 }, inner: "result", type: None }], body: Block { location: Location { line: 14, column: 110 }, statements: [Assignment(Assignment { location: Location { line: 15, column: 17 }, bindings: [Identifier { location: Location { line: 15, column: 17 }, inner: "result", type: None }], initializer: Literal(Literal { location: Location { line: 15, column: 27 }, inner: Integer(Decimal { inner: "42" }), yul_type: None }) })] }, attributes: {} })] } }, inner_object: None, factory_dependencies: {} }), factory_dependencies: {} })
 right: Err(Parser(InvalidAttributes { location: Location { line: 14, column: 22 }, values: {"UnknownAttribute1", "UnknownAttribute2"} }))

Check warning on line 0 in yul::parser::statement::function_definition::tests

See this annotation in the file changed.

@github-actions github-actions / Linux X64 Unit Tests Results

1 out of 2 runs failed: error_invalid_attributes_single (yul::parser::statement::function_definition::tests)

unit-tests-results.xml [took 0s]
Raw output
failed yul::parser::statement::function_definition::tests::error_invalid_attributes_single
thread 'yul::parser::statement::function_definition::tests::error_invalid_attributes_single' panicked at yul-syntax-tools/src/yul/parser/statement/function_definition.rs:462:9:
assertion `left == right` failed
  left: Ok(Object { location: Location { line: 2, column: 1 }, identifier: "Test", code: Code { location: Location { line: 3, column: 5 }, block: Block { location: Location { line: 3, column: 10 }, statements: [Block(Block { location: Location { line: 4, column: 9 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 5, column: 13 }, name: Return, arguments: [Literal(Literal { location: Location { line: 5, column: 20 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 5, column: 23 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] })] } }, inner_object: Some(Object { location: Location { line: 8, column: 5 }, identifier: "Test_deployed", code: Code { location: Location { line: 9, column: 9 }, block: Block { location: Location { line: 9, column: 14 }, statements: [Block(Block { location: Location { line: 10, column: 13 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 11, column: 17 }, name: Return, arguments: [Literal(Literal { location: Location { line: 11, column: 24 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 11, column: 27 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] }), FunctionDefinition(FunctionDefinition { location: Location { line: 14, column: 22 }, identifier: "test_$llvm_UnknownAttribute_llvm$_test", arguments: [], result: [Identifier { location: Location { line: 14, column: 66 }, inner: "result", type: None }], body: Block { location: Location { line: 14, column: 73 }, statements: [Assignment(Assignment { location: Location { line: 15, column: 17 }, bindings: [Identifier { location: Location { line: 15, column: 17 }, inner: "result", type: None }], initializer: Literal(Literal { location: Location { line: 15, column: 27 }, inner: Integer(Decimal { inner: "42" }), yul_type: None }) })] }, attributes: {} })] } }, inner_object: None, factory_dependencies: {} }), factory_dependencies: {} })
 right: Err(Parser(InvalidAttributes { location: Location { line: 14, column: 22 }, values: {"UnknownAttribute"} }))

Check warning on line 0 in yul::parser::statement::function_definition::tests

See this annotation in the file changed.

@github-actions github-actions / Linux X64 Unit Tests Results

1 out of 2 runs failed: error_invalid_number_of_arguments_near_call_abi (yul::parser::statement::function_definition::tests)

unit-tests-results.xml [took 0s]
Raw output
failed yul::parser::statement::function_definition::tests::error_invalid_number_of_arguments_near_call_abi
thread 'yul::parser::statement::function_definition::tests::error_invalid_number_of_arguments_near_call_abi' panicked at yul-syntax-tools/src/yul/parser/statement/function_definition.rs:351:9:
assertion `left == right` failed
  left: Ok(Object { location: Location { line: 2, column: 1 }, identifier: "Test", code: Code { location: Location { line: 3, column: 5 }, block: Block { location: Location { line: 3, column: 10 }, statements: [Block(Block { location: Location { line: 4, column: 9 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 5, column: 13 }, name: Return, arguments: [Literal(Literal { location: Location { line: 5, column: 20 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 5, column: 23 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] })] } }, inner_object: Some(Object { location: Location { line: 8, column: 5 }, identifier: "Test_deployed", code: Code { location: Location { line: 9, column: 9 }, block: Block { location: Location { line: 9, column: 14 }, statements: [Block(Block { location: Location { line: 10, column: 13 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 11, column: 17 }, name: Return, arguments: [Literal(Literal { location: Location { line: 11, column: 24 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 11, column: 27 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] }), FunctionDefinition(FunctionDefinition { location: Location { line: 14, column: 22 }, identifier: "ZKSYNC_NEAR_CALL_test", arguments: [], result: [Identifier { location: Location { line: 14, column: 49 }, inner: "result", type: None }], body: Block { location: Location { line: 14, column: 56 }, statements: [Assignment(Assignment { location: Location { line: 15, column: 17 }, bindings: [Identifier { location: Location { line: 15, column: 17 }, inner: "result", type: None }], initializer: Literal(Literal { location: Location { line: 15, column: 27 }, inner: Integer(Decimal { inner: "42" }), yul_type: None }) })] }, attributes: {} })] } }, inner_object: None, factory_dependencies: {} }), factory_dependencies: {} })
 right: Err(Parser(InvalidNumberOfArguments { location: Location { line: 14, column: 22 }, identifier: "ZKSYNC_NEAR_CALL_test", expected: 1, found: 0 }))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Check warning on line 0 in yul::parser::statement::function_definition::tests

See this annotation in the file changed.

@github-actions github-actions / Linux X64 Unit Tests Results

1 out of 2 runs failed: error_invalid_number_of_arguments_near_call_abi_catch (yul::parser::statement::function_definition::tests)

unit-tests-results.xml [took 0s]
Raw output
failed yul::parser::statement::function_definition::tests::error_invalid_number_of_arguments_near_call_abi_catch
thread 'yul::parser::statement::function_definition::tests::error_invalid_number_of_arguments_near_call_abi_catch' panicked at yul-syntax-tools/src/yul/parser/statement/function_definition.rs:388:9:
assertion `left == right` failed
  left: Ok(Object { location: Location { line: 2, column: 1 }, identifier: "Test", code: Code { location: Location { line: 3, column: 5 }, block: Block { location: Location { line: 3, column: 10 }, statements: [Block(Block { location: Location { line: 4, column: 9 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 5, column: 13 }, name: Return, arguments: [Literal(Literal { location: Location { line: 5, column: 20 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 5, column: 23 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] })] } }, inner_object: Some(Object { location: Location { line: 8, column: 5 }, identifier: "Test_deployed", code: Code { location: Location { line: 9, column: 9 }, block: Block { location: Location { line: 9, column: 14 }, statements: [Block(Block { location: Location { line: 10, column: 13 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 11, column: 17 }, name: Return, arguments: [Literal(Literal { location: Location { line: 11, column: 24 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Literal(Literal { location: Location { line: 11, column: 27 }, inner: Integer(Decimal { inner: "0" }), yul_type: None })] }))] }), FunctionDefinition(FunctionDefinition { location: Location { line: 14, column: 22 }, identifier: "ZKSYNC_CATCH_NEAR_CALL", arguments: [Identifier { location: Location { line: 14, column: 45 }, inner: "length", type: None }], result: [], body: Block { location: Location { line: 14, column: 53 }, statements: [Expression(FunctionCall(FunctionCall { location: Location { line: 15, column: 17 }, name: Revert, arguments: [Literal(Literal { location: Location { line: 15, column: 24 }, inner: Integer(Decimal { inner: "0" }), yul_type: None }), Identifier(Identifier { location: Location { line: 15, column: 27 }, inner: "length", type: None })] }))] }, attributes: {} })] } }, inner_object: None, factory_dependencies: {} }), factory_dependencies: {} })
 right: Err(Parser(InvalidNumberOfArguments { location: Location { line: 14, column: 22 }, identifier: "ZKSYNC_CATCH_NEAR_CALL", expected: 0, found: 1 }))