Skip to content

Commit

Permalink
fix: temporary measure against rustc ICE on nightly
Browse files Browse the repository at this point in the history
 ICE rust-lang/rust#137640

In all crates disable #[deny(clippy::*)
  • Loading branch information
luukvanderduim committed Mar 9, 2025
1 parent c980aaf commit 4589391
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
12 changes: 7 additions & 5 deletions atspi-common/src/events/event_body.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::AtspiError;
use serde::{
ser::{SerializeMap, SerializeStruct},
ser::{SerializeMap, SerializeTuple},
Deserialize, Serialize,
};
use zbus_lockstep_macros::validate;
Expand Down Expand Up @@ -75,10 +75,10 @@ impl Serialize for QtProperties {
where
S: serde::ser::Serializer,
{
let mut structure = serializer.serialize_struct("ObjectRef", 2)?;
structure.serialize_field("name", ":0.0")?;
structure.serialize_field("path", &ObjectPath::from_static_str_unchecked("/"))?;
structure.end()
let mut tup = serializer.serialize_tuple(2)?;
tup.serialize_element(":0.0")?;
tup.serialize_element(&ObjectPath::from_static_str_unchecked("/"))?;
tup.end()
}
}

Expand Down Expand Up @@ -449,6 +449,7 @@ impl<'a> EventBody<'_> {
}
}

/// The `detail1` field.
#[must_use]
pub fn detail1(&self) -> i32 {
match self {
Expand All @@ -457,6 +458,7 @@ impl<'a> EventBody<'_> {
}
}

/// The `detail2` field.
#[must_use]
pub fn detail2(&self) -> i32 {
match self {
Expand Down
2 changes: 2 additions & 0 deletions atspi-common/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ where
///
/// - [`type@AtspiError::MissingInterface`] if there is no interface
/// - [`type@AtspiError::InterfaceMatch`] if the interfaces do not match
#[inline]
fn validate_interface(msg: &zbus::Message) -> Result<(), AtspiError> {
let header = msg.header();
let interface = header.interface().ok_or(AtspiError::MissingInterface)?;
Expand Down Expand Up @@ -798,6 +799,7 @@ where
/// # Errors
///
/// - [`type@AtspiError::SignatureMatch`] if the signatures do not match
#[inline]
fn validate_body(msg: &zbus::Message) -> Result<(), AtspiError> {
let body = msg.body();
let body_signature = body.signature();
Expand Down
3 changes: 2 additions & 1 deletion atspi-common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
// #![deny(clippy::all, clippy::cargo, unsafe_code, rustdoc::all)]
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::multiple_crate_versions)]
// ICE https://github.com/rust-lang/rust/issues/137640

//! # atspi-common
//!
Expand Down
2 changes: 2 additions & 0 deletions atspi-connection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all, missing_docs)]
#![allow(clippy::multiple_crate_versions)]
// ICE https://github.com/rust-lang/rust/issues/137640
#![allow(clippy::macro_use_imports)]

#[cfg(all(not(feature = "async-std"), not(feature = "tokio")))]
compile_error!("You must specify at least one of the `async-std` or `tokio` features.");
Expand Down
3 changes: 2 additions & 1 deletion atspi-proxies/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//! All proxy structures for communicating using AT-SPI.
//! Each proxy uses a different interface for communication.
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
// #![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
#![allow(clippy::multiple_crate_versions)]
// ICE https://github.com/rust-lang/rust/issues/137640

#[cfg(all(not(feature = "async-std"), not(feature = "tokio")))]
compile_error!("You must specify at least one of the `async-std` or `tokio` features.");
Expand Down
3 changes: 2 additions & 1 deletion atspi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
//! * `atspi_connection` (with use of `connection` feature flag)
//! * `zbus` re-export (with use of `zbus` feature flag)
#![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
// #![deny(clippy::all, clippy::pedantic, clippy::cargo, unsafe_code, rustdoc::all)]
#![allow(clippy::multiple_crate_versions)]
// ICE https://github.com/rust-lang/rust/issues/137640

#[cfg(all(not(feature = "async-std"), not(feature = "tokio")))]
compile_error!("You must specify at least one of the `async-std` or `tokio` features.");
Expand Down

0 comments on commit 4589391

Please sign in to comment.