Skip to content

Commit 1c930a0

Browse files
Update Rust toolchains to nightly-2024-01-08 (#3837)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tim Diekmann <[email protected]>
1 parent 2f6b56f commit 1c930a0

File tree

16 files changed

+29
-22
lines changed

16 files changed

+29
-22
lines changed

libs/antsi/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2024-01-01"
2+
channel = "nightly-2024-01-08"
33
components = ['rustfmt', 'clippy', 'llvm-tools-preview']

libs/deer/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2024-01-01"
2+
channel = "nightly-2024-01-08"
33
components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri']

libs/deer/src/impls/core/ops.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ where
6767
}
6868
}
6969

70-
pub struct BoundReflection<T: ?Sized>(fn() -> *const T);
70+
pub struct BoundReflection<T: ?Sized>(#[allow(dead_code)] fn() -> *const T);
7171

7272
impl<T> Reflection for BoundReflection<T>
7373
where
@@ -261,7 +261,10 @@ where
261261
}
262262
}
263263

264-
pub struct RangeReflection<T: ?Sized, U: ?Sized>(fn() -> *const T, fn() -> *const U);
264+
pub struct RangeReflection<T: ?Sized, U: ?Sized>(
265+
#[allow(dead_code)] fn() -> *const T,
266+
#[allow(dead_code)] fn() -> *const U,
267+
);
265268

266269
impl<T, U> Reflection for RangeReflection<T, U>
267270
where

libs/error-stack/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io]
1010
[![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs]
11-
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-01&color=blue)][rust-version]
11+
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-08&color=blue)][rust-version]
1212
[![documentation](https://img.shields.io/docsrs/error-stack)][documentation]
1313
[![license](https://img.shields.io/crates/l/error-stack)][license]
1414
[![discord](https://img.shields.io/discord/840573247803097118)][discord]

libs/error-stack/macros/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[![crates.io](https://img.shields.io/crates/v/error-stack-macros)][crates.io]
99
[![libs.rs](https://img.shields.io/badge/libs.rs-error--stack--macros-orange)][libs.rs]
10-
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-01&color=blue)][rust-version]
10+
[![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-08&color=blue)][rust-version]
1111
[![documentation](https://img.shields.io/docsrs/error-stack-macros)][documentation]
1212
[![license](https://img.shields.io/crates/l/error-stack)][license]
1313
[![discord](https://img.shields.io/discord/840573247803097118)][discord]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
22
# Please also update the badges in `README.md`s (`error-stack` and `error-stack-macros`), and `src/lib.rs`
3-
channel = "nightly-2024-01-01"
3+
channel = "nightly-2024-01-08"
44
components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri', 'rust-src']

libs/error-stack/src/fmt/hook.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ crate::hook::context::impl_hook_context! {
7373
/// struct Warning(&'static str);
7474
/// struct HttpResponseStatusCode(u64);
7575
/// struct Suggestion(&'static str);
76+
/// # #[allow(dead_code)]
7677
/// struct Secret(&'static str);
7778
///
7879
/// Report::install_debug_hook::<HttpResponseStatusCode>(|HttpResponseStatusCode(value), context| {

libs/error-stack/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! [![crates.io](https://img.shields.io/crates/v/error-stack)][crates.io]
44
//! [![libs.rs](https://img.shields.io/badge/libs.rs-error--stack-orange)][libs.rs]
5-
//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-01&color=blue)][rust-version]
5+
//! [![rust-version](https://img.shields.io/static/v1?label=Rust&message=1.63.0/nightly-2024-01-08&color=blue)][rust-version]
66
//! [![discord](https://img.shields.io/discord/840573247803097118)][discord]
77
//!
88
//! [crates.io]: https://crates.io/crates/error-stack
@@ -78,10 +78,10 @@
7878
//! variant and can be used as a return type:
7979
//!
8080
//! ```rust
81-
//! # fn has_permission(_: usize, _: usize) -> bool { true }
82-
//! # fn get_user() -> Result<usize, AccessError> { Ok(0) }
83-
//! # fn get_resource() -> Result<usize, AccessError> { Ok(0) }
84-
//! # #[derive(Debug)] enum AccessError { PermissionDenied(usize, usize) }
81+
//! # fn has_permission(_: (), _: ()) -> bool { true }
82+
//! # fn get_user() -> Result<(), AccessError> { Ok(()) }
83+
//! # fn get_resource() -> Result<(), AccessError> { Ok(()) }
84+
//! # #[derive(Debug)] enum AccessError { PermissionDenied((), ()) }
8585
//! # impl core::fmt::Display for AccessError {
8686
//! # fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { Ok(()) }
8787
//! # }

libs/error-stack/src/macros.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ pub mod __private {
106106
/// use error_stack::{report, Context};
107107
///
108108
/// #[derive(Debug)]
109+
/// # #[allow(dead_code)]
109110
/// struct PermissionDenied(User, Resource);
110111
///
111112
/// impl fmt::Display for PermissionDenied {
@@ -173,6 +174,7 @@ macro_rules! report {
173174
/// use error_stack::{bail, Context};
174175
///
175176
/// #[derive(Debug)]
177+
/// # #[allow(dead_code)]
176178
/// struct PermissionDenied(User, Resource);
177179
///
178180
/// impl fmt::Display for PermissionDenied {
@@ -222,6 +224,7 @@ macro_rules! bail {
222224
/// use error_stack::{ensure, Context};
223225
///
224226
/// #[derive(Debug)]
227+
/// # #[allow(dead_code)]
225228
/// struct PermissionDenied(User, Resource);
226229
///
227230
/// impl fmt::Display for PermissionDenied {

libs/error-stack/src/result.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ use crate::{Context, Report};
1414
/// `Result` can also be used in `fn main()`:
1515
///
1616
/// ```rust
17-
/// # fn has_permission(_: usize, _: usize) -> bool { true }
18-
/// # fn get_user() -> Result<usize, AccessError> { Ok(0) }
19-
/// # fn get_resource() -> Result<usize, AccessError> { Ok(0) }
20-
/// # #[derive(Debug)] enum AccessError { PermissionDenied(usize, usize) }
17+
/// # fn has_permission(_: (), _: ()) -> bool { true }
18+
/// # fn get_user() -> Result<(), AccessError> { Ok(()) }
19+
/// # fn get_resource() -> Result<(), AccessError> { Ok(()) }
20+
/// # #[derive(Debug)] enum AccessError { PermissionDenied((), ()) }
2121
/// # impl core::fmt::Display for AccessError {
2222
/// # fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { Ok(()) }
2323
/// # }

0 commit comments

Comments
 (0)