From c0f1670e47ac00c08afcf953cdf3060554b231ed Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 19 Dec 2021 19:49:05 +0100 Subject: [PATCH] rustup --- rust-version | 2 +- src/shims/intrinsics.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rust-version b/rust-version index b517ff5b95c..dc73dadf90b 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -c5ecc157043ba413568b09292001a4a74b541a4e +41c3017c82bbc16842cc3bc1afa904e6910e293c diff --git a/src/shims/intrinsics.rs b/src/shims/intrinsics.rs index 39ed5ada0aa..c2978ae34b3 100644 --- a/src/shims/intrinsics.rs +++ b/src/shims/intrinsics.rs @@ -32,7 +32,8 @@ fn call_intrinsic( } // All supported intrinsics have a return place. - let intrinsic_name = &*this.tcx.item_name(instance.def_id()).as_str(); + let intrinsic_name = this.tcx.item_name(instance.def_id()); + let intrinsic_name = intrinsic_name.as_str(); let (dest, ret) = match ret { None => throw_unsup_format!("unimplemented (diverging) intrinsic: {}", intrinsic_name), Some(p) => p,