Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jlapeyre committed Jan 9, 2024
1 parent 8b6feb1 commit bd262de
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: Clippy
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose -- --skip sourcegen_ast --skip sourcegen_ast_nodes
3 changes: 3 additions & 0 deletions crates/qasm3_bytecode/src/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use semantics::asg::{GateModifier, TExpr};
use semantics::symbols::SymbolId;

#[allow(unused)]
#[derive(Clone)]
pub enum ByteCode {
GateCall(GateCall),
Expand All @@ -12,6 +13,7 @@ pub enum ByteCode {

// Ugh, this is an exact copy of asg::GateCall except SymbolIdResult -> SymbolId
// This is unavoidable in Rust without some fancy approach.
#[allow(unused)]
#[derive(Clone)]
pub struct GateCall {
name: SymbolId,
Expand All @@ -20,6 +22,7 @@ pub struct GateCall {
modifier: Option<GateModifier>,
}

#[allow(unused)]
#[derive(Clone)]
pub struct DeclareQuantum {
name: SymbolId,
Expand Down
3 changes: 2 additions & 1 deletion crates/qasm3_bytecode/src/pybytecode.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright contributors to the openqasm-parser project

use pyo3::prelude::*;
use pyo3::Python;
// use pyo3::Python;

#[pyclass(frozen)]
#[derive(Clone)]
Expand All @@ -12,6 +12,7 @@ pub struct Bytecode {
operands: PyObject,
}

#[allow(unused)]
#[pyclass(frozen)]
#[derive(Clone)]
pub enum OpCode {
Expand Down
1 change: 1 addition & 0 deletions crates/semantics/src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use crate::symbols::{SymbolIdResult, SymbolTable};
// We intend that T : FnMut(&SymbolIdResult), but the bound is not needed here.
// We want the `FnMut` in the trait bound so that the compiler
// knows the function at compile time and can optimize.
#[allow(unused)]
struct SymContext<'a, T> {
// : FnMut(&SymbolIdResult)> {
func: T,
Expand Down

0 comments on commit bd262de

Please sign in to comment.