From: Skgland Date: Tue, 18 Nov 2025 20:42:00 +0000 (+0100) Subject: ignore unused_parens warning X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=119761ad10e03042e88321a3d820eeb89bcf336b;p=scryer-prolog.git ignore unused_parens warning parens are generated by external macro --- diff --git a/src/arena.rs b/src/arena.rs index 11db7581..09c52728 100644 --- a/src/arena.rs +++ b/src/arena.rs @@ -1,4 +1,5 @@ #![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 #[cfg(feature = "http")] use crate::http::{HttpListener, HttpResponse}; diff --git a/src/atom_table.rs b/src/atom_table.rs index d7796d73..cb4e5230 100644 --- a/src/atom_table.rs +++ b/src/atom_table.rs @@ -1,4 +1,5 @@ #![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 use crate::parser::ast::MAX_ARITY; use crate::raw_block::*; diff --git a/src/heap_iter.rs b/src/heap_iter.rs index ceefe4a9..70314082 100644 --- a/src/heap_iter.rs +++ b/src/heap_iter.rs @@ -1,4 +1,5 @@ #![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 #[cfg(test)] pub(crate) use crate::machine::gc::StacklessPreOrderHeapIter; diff --git a/src/machine/copier.rs b/src/machine/copier.rs index 110371bc..965902df 100644 --- a/src/machine/copier.rs +++ b/src/machine/copier.rs @@ -1,3 +1,5 @@ +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 + use fxhash::FxBuildHasher; use indexmap::IndexSet; diff --git a/src/machine/machine_indices.rs b/src/machine/machine_indices.rs index 7f7bfe35..a2cb5050 100644 --- a/src/machine/machine_indices.rs +++ b/src/machine/machine_indices.rs @@ -1,4 +1,5 @@ #![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 use crate::parser::ast::*; diff --git a/src/machine/streams.rs b/src/machine/streams.rs index c0f5c7b3..0d88ca58 100644 --- a/src/machine/streams.rs +++ b/src/machine/streams.rs @@ -1,3 +1,5 @@ +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 + use crate::arena::*; use crate::atom_table::*; use crate::functor_macro::*; diff --git a/src/parser/ast.rs b/src/parser/ast.rs index 9effb51e..3728da75 100644 --- a/src/parser/ast.rs +++ b/src/parser/ast.rs @@ -1,4 +1,5 @@ #![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 use crate::arena::*; use crate::atom_table::*; diff --git a/src/types.rs b/src/types.rs index 97df4bc4..4549c3ea 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,4 +1,5 @@ #![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work +#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 use crate::arena::*; use crate::atom_table::*;