diff --git a/Dockerfile b/Dockerfile index ad223cc313..82b2428c3c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH \ # Manually sync this with rust-toolchain.toml! - RUST_VERSION=nightly-2022-04-24 \ + RUST_VERSION=nightly-2022-06-29 \ RUST_COMPONENTS="clippy llvm-tools-preview rustfmt rust-src" \ RUST_TARGETS="x86_64-unknown-none" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 82270c5446..ef7b097fd3 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,6 +1,6 @@ [toolchain] # Manually sync this with Dockerfile! -channel = "nightly-2022-05-15" +channel = "nightly-2022-06-29" components = [ "clippy", "llvm-tools-preview", diff --git a/src/arch/x86_64/kernel/pci.rs b/src/arch/x86_64/kernel/pci.rs index ace2e16e95..e57be93fae 100644 --- a/src/arch/x86_64/kernel/pci.rs +++ b/src/arch/x86_64/kernel/pci.rs @@ -48,7 +48,7 @@ static mut PCI_ADAPTERS: Vec = Vec::new(); static mut PCI_DRIVERS: Vec> = Vec::new(); /// Classes of PCI nodes. -#[derive(Copy, Clone, Debug, FromPrimitive, ToPrimitive, PartialEq)] +#[derive(Copy, Clone, Debug, FromPrimitive, ToPrimitive, PartialEq, Eq)] pub enum PciClassCode { TooOld = 0x00, MassStorage = 0x01, @@ -71,7 +71,7 @@ pub enum PciClassCode { } /// Network Controller Sub Classes -#[derive(Copy, Clone, Debug, FromPrimitive, ToPrimitive, PartialEq)] +#[derive(Copy, Clone, Debug, FromPrimitive, ToPrimitive, PartialEq, Eq)] pub enum PciNetworkControllerSubclass { Ethernet = 0x00, TokenRing = 0x01, diff --git a/src/drivers/net/virtio_net.rs b/src/drivers/net/virtio_net.rs index bce0d23f6b..a08ffb7aad 100644 --- a/src/drivers/net/virtio_net.rs +++ b/src/drivers/net/virtio_net.rs @@ -1550,7 +1550,7 @@ pub mod constants { /// wrapping a u64. /// /// The main functionality of this type are functions implemented on it. - #[derive(Debug, Copy, Clone, PartialOrd, PartialEq)] + #[derive(Debug, Copy, Clone, PartialOrd, PartialEq, Eq)] pub struct FeatureSet(u64); impl BitOr for FeatureSet { diff --git a/src/drivers/virtio/mod.rs b/src/drivers/virtio/mod.rs index 9edc1d25f5..c4d2b00a12 100644 --- a/src/drivers/virtio/mod.rs +++ b/src/drivers/virtio/mod.rs @@ -60,7 +60,7 @@ pub mod features { /// Virtio's feature bits inside an enum. /// See Virtio specification v1.1. - 6 #[allow(dead_code, non_camel_case_types)] - #[derive(Clone, Copy, Debug, PartialEq)] + #[derive(Clone, Copy, Debug, PartialEq, Eq)] #[repr(u64)] pub enum Features { VIRTIO_F_RING_INDIRECT_DESC = 1 << 28, diff --git a/src/drivers/virtio/transport/pci.rs b/src/drivers/virtio/transport/pci.rs index 9cc47abdb8..1272fcd524 100644 --- a/src/drivers/virtio/transport/pci.rs +++ b/src/drivers/virtio/transport/pci.rs @@ -88,7 +88,7 @@ impl From for DevId { // implementation, in order catch all cases correctly, // as this function uses the catch-all "_" case! #[allow(dead_code, non_camel_case_types, clippy::upper_case_acronyms)] -#[derive(Copy, Clone, PartialEq)] +#[derive(Copy, Clone, PartialEq, Eq)] #[repr(u8)] pub enum CfgType { INVALID = 0, diff --git a/src/drivers/virtio/virtqueue/mod.rs b/src/drivers/virtio/virtqueue/mod.rs index 8c3aec44c0..1b53c83985 100644 --- a/src/drivers/virtio/virtqueue/mod.rs +++ b/src/drivers/virtio/virtqueue/mod.rs @@ -35,7 +35,7 @@ use core::ops::{BitAnd, Deref, DerefMut}; /// smaller-equal to `min(u16::MAX , T::MAX)`. /// /// Currently implements `From` and `From`. -#[derive(Copy, Clone, Debug, PartialOrd, PartialEq)] +#[derive(Copy, Clone, Debug, PartialOrd, PartialEq, Eq)] pub struct VqIndex(u16); impl From for VqIndex { @@ -64,7 +64,7 @@ impl From for VqIndex { /// smaller-equal to `min(u16::MAX , T::MAX)`. /// /// Currently implements `From` and `From`. -#[derive(Copy, Clone, Debug, PartialOrd, PartialEq)] +#[derive(Copy, Clone, Debug, PartialOrd, PartialEq, Eq)] pub struct VqSize(u16); impl From for VqSize {