diff options
| author | bors <bors@rust-lang.org> | 2024-03-19 05:50:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-19 05:50:28 +0000 |
| commit | bca5e2c1be77b82a95bda397c7c8f4a3b2b724a2 (patch) | |
| tree | 43eb5628d40bfad0faa9ffd0f857ad646ed133d5 /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | b648a9a72873760f59ac7225d5314de5b4a2050d (diff) | |
| parent | be6c1704dc4097d13d27951c984bd99c4efa6f8e (diff) | |
| download | rust-bca5e2c1be77b82a95bda397c7c8f4a3b2b724a2.tar.gz rust-bca5e2c1be77b82a95bda397c7c8f4a3b2b724a2.zip | |
Auto merge of #3390 - rust-lang:rustup-2024-03-19, r=oli-obk
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index 5bd7442822a..fcd7fa9247b 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -19,6 +19,7 @@ use rustc_hir::{CoroutineDesugaring, CoroutineKind, CoroutineSource, Mutability} use rustc_middle::ty::layout::{IntegerExt, TyAndLayout}; use rustc_middle::ty::{self, ExistentialProjection, ParamEnv, Ty, TyCtxt}; use rustc_middle::ty::{GenericArgKind, GenericArgsRef}; +use rustc_span::DUMMY_SP; use rustc_target::abi::Integer; use smallvec::SmallVec; @@ -704,7 +705,7 @@ fn push_const_param<'tcx>(tcx: TyCtxt<'tcx>, ct: ty::Const<'tcx>, output: &mut S // avoiding collisions and will make the emitted type names shorter. let hash_short = tcx.with_stable_hashing_context(|mut hcx| { let mut hasher = StableHasher::new(); - let ct = ct.eval(tcx, ty::ParamEnv::reveal_all(), None).unwrap(); + let ct = ct.eval(tcx, ty::ParamEnv::reveal_all(), DUMMY_SP).unwrap(); hcx.while_hashing_spans(false, |hcx| ct.hash_stable(hcx, &mut hasher)); hasher.finish::<Hash64>() }); |
