diff --git a/.cargo/config.toml b/.cargo/config.toml index 919c6d39..14d6a664 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -6,7 +6,6 @@ crates-io = "https://docs.rs/" [target.'cfg(all())'] rustflags = [ - "-Wprivate_in_public", "-Wrust_2018_idioms", "-Wsemicolon_in_expressions_from_macros", "-Wunreachable_pub", diff --git a/crates/ruma-common/src/identifiers/room_version_id.rs b/crates/ruma-common/src/identifiers/room_version_id.rs index d15fe2f9..5c4352c3 100644 --- a/crates/ruma-common/src/identifiers/room_version_id.rs +++ b/crates/ruma-common/src/identifiers/room_version_id.rs @@ -237,6 +237,7 @@ impl PartialEq for String { #[derive(Clone, Debug, PartialEq, Eq, Hash)] #[doc(hidden)] +#[allow(unknown_lints, unnameable_types)] pub struct CustomRoomVersion(Box); #[doc(hidden)] diff --git a/crates/ruma-common/src/push/action.rs b/crates/ruma-common/src/push/action.rs index d4eec946..ea57cc8d 100644 --- a/crates/ruma-common/src/push/action.rs +++ b/crates/ruma-common/src/push/action.rs @@ -110,6 +110,7 @@ impl Serialize for Action { /// An unknown action. #[doc(hidden)] +#[allow(unknown_lints, unnameable_types)] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CustomAction { diff --git a/crates/ruma-events/src/room/message.rs b/crates/ruma-events/src/room/message.rs index c48f76f6..e5672cae 100644 --- a/crates/ruma-events/src/room/message.rs +++ b/crates/ruma-events/src/room/message.rs @@ -41,7 +41,9 @@ mod video; mod without_relation; #[cfg(feature = "unstable-msc3245-v1-compat")] -pub use self::audio::{UnstableAudioDetailsContentBlock, UnstableVoiceContentBlock}; +pub use self::audio::{ + UnstableAmplitude, UnstableAudioDetailsContentBlock, UnstableVoiceContentBlock, +}; pub use self::{ audio::{AudioInfo, AudioMessageEventContent}, emote::EmoteMessageEventContent, diff --git a/xtask/src/ci.rs b/xtask/src/ci.rs index ef36c1d8..5e353598 100644 --- a/xtask/src/ci.rs +++ b/xtask/src/ci.rs @@ -226,10 +226,19 @@ impl CiTask { /// /// Also checks that all features that are used in the code exist. fn nightly_all(&self) -> Result<()> { - cmd!("rustup run {NIGHTLY} cargo check --workspace --all-features -Z unstable-options -Z check-cfg") - .env("RUSTFLAGS", "-D warnings") - .run() - .map_err(Into::into) + cmd!( + " + rustup run {NIGHTLY} cargo check + --workspace --all-features -Z unstable-options -Z check-cfg + " + ) + .env( + "RUSTFLAGS", + "-Z crate-attr=feature(type_privacy_lints) \ + -D private_bounds,private_interfaces,unnameable_types,warnings", + ) + .run() + .map_err(Into::into) } /// Check ruma-common with `ruma_identifiers_storage="Box"`