Skip to content

Commit

Permalink
[ci] Roll pinned nightly toolchain (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
google-pr-creation-bot committed Mar 6, 2024
1 parent 52705df commit 88c0edd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -44,7 +44,7 @@ zerocopy-panic-in-const = "1.57.0"
[package.metadata.ci]
# The versions of the stable and nightly compiler toolchains to use in CI.
pinned-stable = "1.76.0"
pinned-nightly = "nightly-2024-03-04"
pinned-nightly = "nightly-2024-03-05"

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 2 additions & 2 deletions src/pointer/ptr.rs
Expand Up @@ -400,7 +400,7 @@ mod _conversions {
#[doc(hidden)]
#[inline]
pub fn from_ref(ptr: &'a T) -> Self {
let ptr = core::ptr::NonNull::from(ptr);
let ptr = NonNull::from(ptr);
// SAFETY:
// 0. `ptr`, by invariant on `&'a T`, is derived from some valid
// Rust allocation, `A`.
Expand Down Expand Up @@ -436,7 +436,7 @@ mod _conversions {
/// Constructs a `Ptr` from an exclusive reference.
#[inline]
pub(crate) fn from_mut(ptr: &'a mut T) -> Self {
let ptr = core::ptr::NonNull::from(ptr);
let ptr = NonNull::from(ptr);
// SAFETY:
// 0. `ptr`, by invariant on `&'a mut T`, is derived from some valid
// Rust allocation, `A`.
Expand Down
4 changes: 2 additions & 2 deletions tests/ui-nightly/max-align.stderr
@@ -1,5 +1,5 @@
error[E0589]: invalid `repr(align)` attribute: larger than 2^29
--> tests/ui-nightly/max-align.rs:96:11
--> tests/ui-nightly/max-align.rs:96:17
|
96 | #[repr(C, align(1073741824))]
| ^^^^^^^^^^^^^^^^^
| ^^^^^^^^^^

0 comments on commit 88c0edd

Please sign in to comment.