Skip to content

Commit

Permalink
Update Rust toolchains to nightly-2024-01-08 (#3837)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tim Diekmann <[email protected]>
  • Loading branch information
renovate[bot] and TimDiekmann authored Jan 9, 2024
1 parent 2f6b56f commit 1c930a0
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 22 deletions.
2 changes: 1 addition & 1 deletion libs/antsi/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-01-01"
channel = "nightly-2024-01-08"
components = ['rustfmt', 'clippy', 'llvm-tools-preview']
2 changes: 1 addition & 1 deletion libs/deer/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-01-01"
channel = "nightly-2024-01-08"
components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri']
7 changes: 5 additions & 2 deletions libs/deer/src/impls/core/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ where
}
}

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

impl<T> Reflection for BoundReflection<T>
where
Expand Down Expand Up @@ -261,7 +261,10 @@ where
}
}

pub struct RangeReflection<T: ?Sized, U: ?Sized>(fn() -> *const T, fn() -> *const U);
pub struct RangeReflection<T: ?Sized, U: ?Sized>(
#[allow(dead_code)] fn() -> *const T,
#[allow(dead_code)] fn() -> *const U,
);

impl<T, U> Reflection for RangeReflection<T, U>
where
Expand Down
2 changes: 1 addition & 1 deletion libs/error-stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion libs/error-stack/macros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion libs/error-stack/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -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']
1 change: 1 addition & 0 deletions libs/error-stack/src/fmt/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(|HttpResponseStatusCode(value), context| {
Expand Down
10 changes: 5 additions & 5 deletions libs/error-stack/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<usize, AccessError> { Ok(0) }
//! # fn get_resource() -> Result<usize, AccessError> { 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(()) }
//! # }
Expand Down
3 changes: 3 additions & 0 deletions libs/error-stack/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions libs/error-stack/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<usize, AccessError> { Ok(0) }
/// # fn get_resource() -> Result<usize, AccessError> { 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(()) }
/// # }
Expand Down
2 changes: 1 addition & 1 deletion libs/error-stack/tests/snapshots/doc/fmt__emit.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/error-stack/tests/snapshots/doc/fmt__emit_alt.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/sarif/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-01-01"
channel = "nightly-2024-01-08"
components = ['rustfmt', 'clippy', 'llvm-tools-preview']
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-01-01"
channel = "nightly-2024-01-08"
components = ['rustfmt', 'clippy', 'llvm-tools-preview']
2 changes: 1 addition & 1 deletion tests/hash-graph-integration/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-01-01"
channel = "nightly-2024-01-08"
components = ['rustfmt', 'clippy', 'llvm-tools-preview']
2 changes: 1 addition & 1 deletion tests/hash-graph-test-data/rust/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2024-01-01"
channel = "nightly-2024-01-08"
components = ['rustfmt', 'clippy', 'llvm-tools-preview']

0 comments on commit 1c930a0

Please sign in to comment.