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,