summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-04-13 18:04:30 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-04-13 18:04:30 +0000
commit09a8791d42152bb08ecb99d029ef6ce51ef48aea (patch)
tree63dd0bd4ee4f932790b9d9bd68285a15347fa051 /compiler/rustc_const_eval/src
parente4dae0dac76436ada630b519f5fbf0b373bc5974 (diff)
downloadrust-09a8791d42152bb08ecb99d029ef6ce51ef48aea.tar.gz
rust-09a8791d42152bb08ecb99d029ef6ce51ef48aea.zip
Implement `Copy` for `LocationDetail`
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/interpret/intrinsics/caller_location.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/intrinsics/caller_location.rs b/compiler/rustc_const_eval/src/interpret/intrinsics/caller_location.rs
index 76c8d0a975a..3701eb93ec8 100644
--- a/compiler/rustc_const_eval/src/interpret/intrinsics/caller_location.rs
+++ b/compiler/rustc_const_eval/src/interpret/intrinsics/caller_location.rs
@@ -77,7 +77,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
         line: u32,
         col: u32,
     ) -> MPlaceTy<'tcx, M::Provenance> {
-        let loc_details = &self.tcx.sess.opts.unstable_opts.location_detail;
+        let loc_details = self.tcx.sess.opts.unstable_opts.location_detail;
         // This can fail if rustc runs out of memory right here. Trying to emit an error would be
         // pointless, since that would require allocating more memory than these short strings.
         let file = if loc_details.file {