From bd262de31fe813e564246aec8d6fc7a1e3a9e4ab Mon Sep 17 00:00:00 2001 From: John Lapeyre Date: Tue, 9 Jan 2024 09:57:32 -0500 Subject: [PATCH] Fix CI --- .github/workflows/main.yml | 2 +- crates/qasm3_bytecode/src/bytecode.rs | 3 +++ crates/qasm3_bytecode/src/pybytecode.rs | 3 ++- crates/semantics/src/validate.rs | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 56684d5..acdebb0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/crates/qasm3_bytecode/src/bytecode.rs b/crates/qasm3_bytecode/src/bytecode.rs index 715de93..0624a9d 100644 --- a/crates/qasm3_bytecode/src/bytecode.rs +++ b/crates/qasm3_bytecode/src/bytecode.rs @@ -4,6 +4,7 @@ use semantics::asg::{GateModifier, TExpr}; use semantics::symbols::SymbolId; +#[allow(unused)] #[derive(Clone)] pub enum ByteCode { GateCall(GateCall), @@ -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, @@ -20,6 +22,7 @@ pub struct GateCall { modifier: Option, } +#[allow(unused)] #[derive(Clone)] pub struct DeclareQuantum { name: SymbolId, diff --git a/crates/qasm3_bytecode/src/pybytecode.rs b/crates/qasm3_bytecode/src/pybytecode.rs index 7f2fd1d..88bbb6d 100644 --- a/crates/qasm3_bytecode/src/pybytecode.rs +++ b/crates/qasm3_bytecode/src/pybytecode.rs @@ -1,7 +1,7 @@ // Copyright contributors to the openqasm-parser project use pyo3::prelude::*; -use pyo3::Python; +// use pyo3::Python; #[pyclass(frozen)] #[derive(Clone)] @@ -12,6 +12,7 @@ pub struct Bytecode { operands: PyObject, } +#[allow(unused)] #[pyclass(frozen)] #[derive(Clone)] pub enum OpCode { diff --git a/crates/semantics/src/validate.rs b/crates/semantics/src/validate.rs index 67f5d83..7bd4214 100644 --- a/crates/semantics/src/validate.rs +++ b/crates/semantics/src/validate.rs @@ -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,