diff --git a/libs/antsi/rust-toolchain.toml b/libs/antsi/rust-toolchain.toml index 4f539a7e1c7..b3b0ebf9b82 100644 --- a/libs/antsi/rust-toolchain.toml +++ b/libs/antsi/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-01-01" +channel = "nightly-2024-01-08" components = ['rustfmt', 'clippy', 'llvm-tools-preview'] diff --git a/libs/deer/rust-toolchain.toml b/libs/deer/rust-toolchain.toml index dc3bce026fc..d4c9465f178 100644 --- a/libs/deer/rust-toolchain.toml +++ b/libs/deer/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-01-01" +channel = "nightly-2024-01-08" components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri'] diff --git a/libs/deer/src/impls/core/ops.rs b/libs/deer/src/impls/core/ops.rs index f3c7256aac1..91f9d294fcf 100644 --- a/libs/deer/src/impls/core/ops.rs +++ b/libs/deer/src/impls/core/ops.rs @@ -67,7 +67,7 @@ where } } -pub struct BoundReflection(fn() -> *const T); +pub struct BoundReflection(#[allow(dead_code)] fn() -> *const T); impl Reflection for BoundReflection where @@ -261,7 +261,10 @@ where } } -pub struct RangeReflection(fn() -> *const T, fn() -> *const U); +pub struct RangeReflection( + #[allow(dead_code)] fn() -> *const T, + #[allow(dead_code)] fn() -> *const U, +); impl Reflection for RangeReflection where diff --git a/libs/error-stack/README.md b/libs/error-stack/README.md index e63705b43d2..5cb44ff0350 100644 --- a/libs/error-stack/README.md +++ b/libs/error-stack/README.md @@ -8,7 +8,7 @@ [![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io] [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs] -[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-01&color=blue)][rust-version] +[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-08&color=blue)][rust-version] [![documentation](https://img.shields.io/docsrs/error-stack)][documentation] [![license](https://img.shields.io/crates/l/error-stack)][license] [![discord](https://img.shields.io/discord/840573247803097118)][discord] diff --git a/libs/error-stack/macros/README.md b/libs/error-stack/macros/README.md index ba1a41ed0d4..2d89d11db6d 100644 --- a/libs/error-stack/macros/README.md +++ b/libs/error-stack/macros/README.md @@ -7,7 +7,7 @@ [![crates.io](https://img.shields.io/crates/v/error-stack-macros)][crates.io] [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack--macros-orange)][libs.rs] -[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-01&color=blue)][rust-version] +[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-08&color=blue)][rust-version] [![documentation](https://img.shields.io/docsrs/error-stack-macros)][documentation] [![license](https://img.shields.io/crates/l/error-stack)][license] [![discord](https://img.shields.io/discord/840573247803097118)][discord] diff --git a/libs/error-stack/rust-toolchain.toml b/libs/error-stack/rust-toolchain.toml index 38a3626bc30..9ec91bd4cce 100644 --- a/libs/error-stack/rust-toolchain.toml +++ b/libs/error-stack/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] # Please also update the badges in `README.md`s (`error-stack` and `error-stack-macros`), and `src/lib.rs` -channel = "nightly-2024-01-01" +channel = "nightly-2024-01-08" components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri', 'rust-src'] diff --git a/libs/error-stack/src/fmt/hook.rs b/libs/error-stack/src/fmt/hook.rs index af7e149f648..88d20d8dc04 100644 --- a/libs/error-stack/src/fmt/hook.rs +++ b/libs/error-stack/src/fmt/hook.rs @@ -73,6 +73,7 @@ crate::hook::context::impl_hook_context! { /// struct Warning(&'static str); /// struct HttpResponseStatusCode(u64); /// struct Suggestion(&'static str); + /// # #[allow(dead_code)] /// struct Secret(&'static str); /// /// Report::install_debug_hook::(|HttpResponseStatusCode(value), context| { diff --git a/libs/error-stack/src/lib.rs b/libs/error-stack/src/lib.rs index bc66d5eb92f..f003559278d 100644 --- a/libs/error-stack/src/lib.rs +++ b/libs/error-stack/src/lib.rs @@ -2,7 +2,7 @@ //! //! [![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io] //! [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs] -//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-01&color=blue)][rust-version] +//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-08&color=blue)][rust-version] //! [![discord](https://img.shields.io/discord/840573247803097118)][discord] //! //! [crates.io]: https://crates.io/crates/error-stack @@ -78,10 +78,10 @@ //! variant and can be used as a return type: //! //! ```rust -//! # fn has_permission(_: usize, _: usize) -> bool { true } -//! # fn get_user() -> Result { Ok(0) } -//! # fn get_resource() -> Result { Ok(0) } -//! # #[derive(Debug)] enum AccessError { PermissionDenied(usize, usize) } +//! # fn has_permission(_: (), _: ()) -> bool { true } +//! # fn get_user() -> Result<(), AccessError> { Ok(()) } +//! # fn get_resource() -> Result<(), AccessError> { Ok(()) } +//! # #[derive(Debug)] enum AccessError { PermissionDenied((), ()) } //! # impl core::fmt::Display for AccessError { //! # fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { Ok(()) } //! # } diff --git a/libs/error-stack/src/macros.rs b/libs/error-stack/src/macros.rs index f015b55a964..4d90a43b999 100644 --- a/libs/error-stack/src/macros.rs +++ b/libs/error-stack/src/macros.rs @@ -106,6 +106,7 @@ pub mod __private { /// use error_stack::{report, Context}; /// /// #[derive(Debug)] +/// # #[allow(dead_code)] /// struct PermissionDenied(User, Resource); /// /// impl fmt::Display for PermissionDenied { @@ -173,6 +174,7 @@ macro_rules! report { /// use error_stack::{bail, Context}; /// /// #[derive(Debug)] +/// # #[allow(dead_code)] /// struct PermissionDenied(User, Resource); /// /// impl fmt::Display for PermissionDenied { @@ -222,6 +224,7 @@ macro_rules! bail { /// use error_stack::{ensure, Context}; /// /// #[derive(Debug)] +/// # #[allow(dead_code)] /// struct PermissionDenied(User, Resource); /// /// impl fmt::Display for PermissionDenied { diff --git a/libs/error-stack/src/result.rs b/libs/error-stack/src/result.rs index b58837ce3b0..aed22c31a70 100644 --- a/libs/error-stack/src/result.rs +++ b/libs/error-stack/src/result.rs @@ -14,10 +14,10 @@ use crate::{Context, Report}; /// `Result` can also be used in `fn main()`: /// /// ```rust -/// # fn has_permission(_: usize, _: usize) -> bool { true } -/// # fn get_user() -> Result { Ok(0) } -/// # fn get_resource() -> Result { Ok(0) } -/// # #[derive(Debug)] enum AccessError { PermissionDenied(usize, usize) } +/// # fn has_permission(_: (), _: ()) -> bool { true } +/// # fn get_user() -> Result<(), AccessError> { Ok(()) } +/// # fn get_resource() -> Result<(), AccessError> { Ok(()) } +/// # #[derive(Debug)] enum AccessError { PermissionDenied((), ()) } /// # impl core::fmt::Display for AccessError { /// # fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { Ok(()) } /// # } diff --git a/libs/error-stack/tests/snapshots/doc/fmt__emit.snap b/libs/error-stack/tests/snapshots/doc/fmt__emit.snap index bb6d299ab03..e1cb5ae9c89 100644 --- a/libs/error-stack/tests/snapshots/doc/fmt__emit.snap +++ b/libs/error-stack/tests/snapshots/doc/fmt__emit.snap @@ -1,5 +1,5 @@ invalid input parameter -├╴at src/fmt/hook.rs:50:14 +├╴at src/fmt/hook.rs:51:14 ├╴backtrace (1) ├╴error code: 404 ├╴suggestion (0) diff --git a/libs/error-stack/tests/snapshots/doc/fmt__emit_alt.snap b/libs/error-stack/tests/snapshots/doc/fmt__emit_alt.snap index 72bf99d1f7e..fbfca20c5f2 100644 --- a/libs/error-stack/tests/snapshots/doc/fmt__emit_alt.snap +++ b/libs/error-stack/tests/snapshots/doc/fmt__emit_alt.snap @@ -1,5 +1,5 @@ invalid input parameter -├╴at src/fmt/hook.rs:50:14 +├╴at src/fmt/hook.rs:51:14 ├╴backtrace (1) ├╴error code: 404 ├╴suggestion 0: diff --git a/libs/sarif/rust-toolchain.toml b/libs/sarif/rust-toolchain.toml index 4f539a7e1c7..b3b0ebf9b82 100644 --- a/libs/sarif/rust-toolchain.toml +++ b/libs/sarif/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-01-01" +channel = "nightly-2024-01-08" components = ['rustfmt', 'clippy', 'llvm-tools-preview'] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 4f539a7e1c7..b3b0ebf9b82 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-01-01" +channel = "nightly-2024-01-08" components = ['rustfmt', 'clippy', 'llvm-tools-preview'] diff --git a/tests/hash-graph-integration/rust-toolchain.toml b/tests/hash-graph-integration/rust-toolchain.toml index 4f539a7e1c7..b3b0ebf9b82 100644 --- a/tests/hash-graph-integration/rust-toolchain.toml +++ b/tests/hash-graph-integration/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-01-01" +channel = "nightly-2024-01-08" components = ['rustfmt', 'clippy', 'llvm-tools-preview'] diff --git a/tests/hash-graph-test-data/rust/rust-toolchain.toml b/tests/hash-graph-test-data/rust/rust-toolchain.toml index 4f539a7e1c7..b3b0ebf9b82 100644 --- a/tests/hash-graph-test-data/rust/rust-toolchain.toml +++ b/tests/hash-graph-test-data/rust/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-01-01" +channel = "nightly-2024-01-08" components = ['rustfmt', 'clippy', 'llvm-tools-preview']