Skip to content

Commit 8b209e3

Browse files
fix: suppress false positive unused_assignments warnings in Rust 1.92
Add #![allow(unused_assignments)] at crate level to suppress false positive warnings introduced by Rust 1.92's stricter lint behavior on code generated by the enum-as-inner derive macro. This is a known Rust compiler bug tracked at: - rust-lang/rust#147648 The fix for enum-as-inner is pending at: - bluejekyll/enum-as-inner#108 The allow can be removed once enum-as-inner is updated. Co-Authored-By: Maximilian Roos <max-sixty@users.noreply.github.com>
1 parent 8fefc00 commit 8b209e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

prqlc/prqlc/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
//! ```
3636
//!
3737
#![doc = include_str!("../ARCHITECTURE.md")]
38+
// TODO: remove when enum-as-inner is updated with the fix from
39+
// https://github.com/bluejekyll/enum-as-inner/pull/108
40+
// This suppresses false positive warnings from Rust 1.92+:
41+
// https://github.com/rust-lang/rust/issues/147648
42+
#![allow(unused_assignments)]
3843
//!
3944
//! ## Common use-cases
4045
//!

0 commit comments

Comments
 (0)