Skip to content

Commit bc061fa

Browse files
committed
Rustup to rustc 1.64.0-nightly (263edd4 2022-07-17)
1 parent cff5eed commit bc061fa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build_sysroot/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/mini_core.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ pub trait FnMut<Args>: FnOnce<Args> {
458458

459459
#[lang = "panic"]
460460
#[track_caller]
461-
pub fn panic(_msg: &str) -> ! {
461+
pub fn panic(_msg: &'static str) -> ! {
462462
unsafe {
463463
libc::puts("Panicking\n\0" as *const str as *const i8);
464464
intrinsics::abort();
@@ -497,7 +497,7 @@ pub trait Deref {
497497
#[repr(transparent)]
498498
#[rustc_layout_scalar_valid_range_start(1)]
499499
#[rustc_nonnull_optimization_guaranteed]
500-
pub struct NonNull<T: ?Sized>(pub *mut T);
500+
pub struct NonNull<T: ?Sized>(pub *const T);
501501

502502
impl<T: ?Sized, U: ?Sized> CoerceUnsized<NonNull<U>> for NonNull<T> where T: Unsize<U> {}
503503
impl<T: ?Sized, U: ?Sized> DispatchFromDyn<NonNull<U>> for NonNull<T> where T: Unsize<U> {}
@@ -521,7 +521,7 @@ impl<T: ?Sized> Drop for Box<T> {
521521
}
522522
}
523523

524-
impl<T> Deref for Box<T> {
524+
impl<T: ?Sized> Deref for Box<T> {
525525
type Target = T;
526526

527527
fn deref(&self) -> &Self::Target {

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2022-07-03"
2+
channel = "nightly-2022-07-18"
33
components = ["rust-src", "rustc-dev", "llvm-tools-preview"]

0 commit comments

Comments
 (0)