diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-20 20:38:11 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-20 20:38:11 -0400 |
| commit | 460abead209f253a2b0de993de242d0778756d58 (patch) | |
| tree | 1448381ac8959901a25deefadc54dbf05f4d3743 /src/debuginfo | |
| parent | 37204ee5637c5bd28e464c78c48bcf5f5b429245 (diff) | |
Do not unnecessarily eval consts in codegen
Diffstat (limited to 'src/debuginfo')
| -rw-r--r-- | src/debuginfo/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debuginfo/types.rs b/src/debuginfo/types.rs index 7baf0a3868d..8a55a23128d 100644 --- a/src/debuginfo/types.rs +++ b/src/debuginfo/types.rs @@ -44,7 +44,7 @@ impl DebugContext { type_dbg, ty, *elem_ty, - len.eval_target_usize(tcx, ty::ParamEnv::reveal_all()), + len.try_to_target_usize(tcx).expect("expected monomorphic const in codegen"), ), // ty::Slice(_) | ty::Str // ty::Dynamic |
