Skip to content

Commit 88c0edd

Browse files
[ci] Roll pinned nightly toolchain (#1023)
1 parent 52705df commit 88c0edd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ zerocopy-panic-in-const = "1.57.0"
4444
[package.metadata.ci]
4545
# The versions of the stable and nightly compiler toolchains to use in CI.
4646
pinned-stable = "1.76.0"
47-
pinned-nightly = "nightly-2024-03-04"
47+
pinned-nightly = "nightly-2024-03-05"
4848

4949
[package.metadata.docs.rs]
5050
all-features = true

src/pointer/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ mod _conversions {
400400
#[doc(hidden)]
401401
#[inline]
402402
pub fn from_ref(ptr: &'a T) -> Self {
403-
let ptr = core::ptr::NonNull::from(ptr);
403+
let ptr = NonNull::from(ptr);
404404
// SAFETY:
405405
// 0. `ptr`, by invariant on `&'a T`, is derived from some valid
406406
// Rust allocation, `A`.
@@ -436,7 +436,7 @@ mod _conversions {
436436
/// Constructs a `Ptr` from an exclusive reference.
437437
#[inline]
438438
pub(crate) fn from_mut(ptr: &'a mut T) -> Self {
439-
let ptr = core::ptr::NonNull::from(ptr);
439+
let ptr = NonNull::from(ptr);
440440
// SAFETY:
441441
// 0. `ptr`, by invariant on `&'a mut T`, is derived from some valid
442442
// Rust allocation, `A`.

tests/ui-nightly/max-align.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0589]: invalid `repr(align)` attribute: larger than 2^29
2-
--> tests/ui-nightly/max-align.rs:96:11
2+
--> tests/ui-nightly/max-align.rs:96:17
33
|
44
96 | #[repr(C, align(1073741824))]
5-
| ^^^^^^^^^^^^^^^^^
5+
| ^^^^^^^^^^

0 commit comments

Comments
 (0)