diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-09 22:45:14 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-09 22:55:00 -0400 |
| commit | d50c2b0a52f31fbbf6e6bfa27c129b513fdddb0b (patch) | |
| tree | 6595467b7154920cfb66630452ad0974979da2db /compiler/rustc_const_eval/src/const_eval | |
| parent | 8c7c151a7a03d92cc5c75c49aa82a658ec1fe4ff (diff) | |
| download | rust-d50c2b0a52f31fbbf6e6bfa27c129b513fdddb0b.tar.gz rust-d50c2b0a52f31fbbf6e6bfa27c129b513fdddb0b.zip | |
Make builtin_deref just return a Ty
Diffstat (limited to 'compiler/rustc_const_eval/src/const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/const_eval/eval_queries.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs index 71a41e9cfe4..d9f329c8b0e 100644 --- a/compiler/rustc_const_eval/src/const_eval/eval_queries.rs +++ b/compiler/rustc_const_eval/src/const_eval/eval_queries.rs @@ -222,7 +222,7 @@ pub(super) fn op_to_const<'tcx>( // This codepath solely exists for `valtree_to_const_value` to not need to generate // a `ConstValue::Indirect` for wide references, so it is tightly restricted to just // that case. - let pointee_ty = imm.layout.ty.builtin_deref(false).unwrap().ty; // `false` = no raw ptrs + let pointee_ty = imm.layout.ty.builtin_deref(false).unwrap(); // `false` = no raw ptrs debug_assert!( matches!( ecx.tcx.struct_tail_without_normalization(pointee_ty).kind(), |
